qms-angular 1.0.72 → 1.0.76
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 +826 -467
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/components/button/button.js +1 -1
- package/esm2015/lib/components/comment/comment.js +2 -2
- package/esm2015/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.js +12 -8
- package/esm2015/lib/components/qms-navigation-drawer/qms-navigation-drawer.module.js +4 -4
- package/esm2015/lib/components/qms-paginator/qms-paginator.component.js +5 -3
- package/esm2015/lib/components/qms-stepper/qms-stepper.component.js +1 -1
- package/esm2015/lib/components/related/popup/related-popup.component.js +10 -10
- package/esm2015/lib/components/select-include-children/select-include-children.component.js +112 -45
- package/esm2015/lib/components/select-process-document/select-process-document.component.js +64 -143
- 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 +10 -14
- package/esm2015/lib/directives/table/table-row.directive.js +50 -0
- package/esm2015/lib/directives/table/table.directive.js +18 -61
- package/esm2015/lib/model/en.js +19 -2
- package/esm2015/lib/model/no.js +19 -2
- package/esm2015/lib/qms-angular.module.js +5 -18
- package/esm2015/lib/qms-ckeditor-components/common/classes/qmsUploadAdapter.js +89 -0
- package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.js +3 -1
- 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-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/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 +22 -3
- 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/qms-ckeditor-link.component.js +4 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.js +3 -4
- package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +161 -11
- package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.module.js +7 -3
- 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 +4 -5
- package/esm2015/qms-angular.js +6 -4
- package/fesm2015/qms-angular.js +744 -418
- 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 +2 -2
- package/lib/components/select-include-children/select-include-children.component.d.ts +2 -1
- package/lib/components/select-process-document/select-process-document.component.d.ts +3 -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 +2 -11
- package/lib/model/en.d.ts +17 -0
- package/lib/model/no.d.ts +17 -0
- package/lib/qms-ckeditor-components/common/classes/qmsUploadAdapter.d.ts +18 -0
- package/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.d.ts +2 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.d.ts +4 -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 +4 -1
- package/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.d.ts +2 -1
- package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +15 -1
- 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 +2 -4
- package/qms-angular.d.ts +5 -3
- package/qms-angular.metadata.json +1 -1
- package/src/assets/images/ckeditor5.svg +1 -0
- package/src/assets/jointjs/scss/rappid.scss +1 -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 +5 -68
- 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 +4 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorService.js +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/fullscreen/qmsCKEditorFullscreenPlugin.js +1 -5
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapcommand.js +1 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/utils.js +1 -1
- 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/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/qms-navigation-drawer/qms-navigation-drawer.component.scss +47 -23
- package/src/lib/components/qms-paginator/qms-paginator.component.scss +40 -3
- package/src/lib/components/qms-stepper/qms-stepper.component.scss +2 -1
- package/src/lib/components/select-process-document/select-process-document.component.scss +2 -2
- 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-imagemap/qms-ckeditor-imagemap.component.scss +25 -23
- package/src/lib/qms-ckeditor-components/qms-ckeditor.component.scss +11 -11
- package/src/themes/core/_range-slider.scss +10 -12
- package/src/themes/core/_side-sheet.scss +2 -2
- package/src/themes/core/_table.scss +176 -37
- 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/tooltip/inserttooltipcommand.js +0 -88
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/radio'), require('@angular/material/dialog'), require('rxjs/operators'), require('@angular/material/autocomplete'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/material/input'), require('@angular/material/card'), require('@angular/material/icon'), require('@angular/material/checkbox'), require('@angular/material/chips'), require('@angular/material/button'), require('@angular/material/core'), require('@angular/material/progress-spinner'), require('@angular/cdk/a11y'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/platform-browser/animations'), require('moment'), require('@angular/material/list'), require('@angular/material/expansion'), require('@angular/cdk/scrolling'), require('@angular/material/sidenav'), require('@angular/material/tree'), require('@angular/material/menu'), require('@angular/platform-browser'), require('@angular/cdk/tree'), require('@angular/common/http'), require('@angular/material/button-toggle'), require('@angular/material/select'), require('@angular/material/snack-bar'), require('@ckeditor/ckeditor5-angular'), require('jquery'), require('lodash'), require('@angular/material/tooltip'), require('@angular/material/tabs'), require('@angular/material/badge'), require('@angular/material/toolbar'), require('@angular/cdk/stepper'), require('@angular/material/stepper'), require('@angular/material/slide-toggle'), require('@angular/cdk/drag-drop')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('qms-angular', ['exports', '@angular/core', 'rxjs', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/radio', '@angular/material/dialog', 'rxjs/operators', '@angular/material/autocomplete', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/material/input', '@angular/material/card', '@angular/material/icon', '@angular/material/checkbox', '@angular/material/chips', '@angular/material/button', '@angular/material/core', '@angular/material/progress-spinner', '@angular/cdk/a11y', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/platform-browser/animations', 'moment', '@angular/material/list', '@angular/material/expansion', '@angular/cdk/scrolling', '@angular/material/sidenav', '@angular/material/tree', '@angular/material/menu', '@angular/platform-browser', '@angular/cdk/tree', '@angular/common/http', '@angular/material/button-toggle', '@angular/material/select', '@angular/material/snack-bar', '@ckeditor/ckeditor5-angular', 'jquery', 'lodash', '@angular/material/tooltip', '@angular/material/tabs', '@angular/material/badge', '@angular/material/toolbar', '@angular/cdk/stepper', '@angular/material/stepper', '@angular/material/slide-toggle', '@angular/cdk/drag-drop'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['qms-angular'] = {}, global.ng.core, global.rxjs, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.radio, global.ng.material.dialog, global.rxjs.operators, global.ng.material.autocomplete, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.material.input, global.ng.material.card, global.ng.material.icon, global.ng.material.checkbox, global.ng.material.chips, global.ng.material.button, global.ng.material.core, global.ng.material.progressSpinner, global.ng.cdk.a11y, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.platformBrowser.animations, global.moment, global.ng.material.list, global.ng.material.expansion, global.ng.cdk.scrolling, global.ng.material.sidenav, global.ng.material.tree, global.ng.material.menu, global.ng.platformBrowser, global.ng.cdk.tree, global.ng.common.http, global.ng.material.buttonToggle, global.ng.material.select, global.ng.material.snackBar, global.ckeditor5Angular, global.$$1, global._, global.ng.material.tooltip, global.ng.material.tabs, global.ng.material.badge, global.ng.material.toolbar, global.ng.cdk.stepper, global.ng.material.stepper, global.ng.material.slideToggle, global.ng.cdk.dragDrop));
|
5
|
-
}(this, (function (exports, i0, rxjs, common, forms, formField, radio, dialog, operators, autocomplete, overlay, portal, input, card, icon, checkbox, chips, button, core, progressSpinner, a11y, coercion, collections, animations, moment, list, expansion, scrolling, sidenav, tree$1, menu, platformBrowser, tree, i1, buttonToggle, select, snackBar, ckeditor5Angular, $$1, _, tooltip, tabs, badge, toolbar, stepper$1, stepper, slideToggle, dragDrop) { 'use strict';
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/radio'), require('@angular/material/dialog'), require('rxjs/operators'), require('@angular/material/autocomplete'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/material/input'), require('@angular/material/card'), require('@angular/material/icon'), require('@angular/material/checkbox'), require('@angular/material/chips'), require('@angular/material/button'), require('@angular/material/core'), require('@angular/material/progress-spinner'), require('@angular/cdk/a11y'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/platform-browser/animations'), require('moment'), require('@angular/material/list'), require('@angular/material/expansion'), require('@angular/cdk/scrolling'), require('@angular/material/sidenav'), require('@angular/material/tree'), require('@angular/material/menu'), require('@angular/platform-browser'), require('@angular/cdk/tree'), require('@angular/common/http'), require('@angular/material/button-toggle'), require('@angular/material/select'), require('@angular/material/snack-bar'), require('@ckeditor/ckeditor5-angular'), require('jquery'), require('lodash'), require('buffer'), require('@angular/material/tooltip'), require('@angular/material/tabs'), require('@angular/material/progress-bar'), require('@angular/material/badge'), require('@angular/material/toolbar'), require('@angular/cdk/stepper'), require('@angular/material/stepper'), require('@angular/material/slide-toggle'), require('@angular/cdk/drag-drop')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('qms-angular', ['exports', '@angular/core', 'rxjs', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/radio', '@angular/material/dialog', 'rxjs/operators', '@angular/material/autocomplete', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/material/input', '@angular/material/card', '@angular/material/icon', '@angular/material/checkbox', '@angular/material/chips', '@angular/material/button', '@angular/material/core', '@angular/material/progress-spinner', '@angular/cdk/a11y', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/platform-browser/animations', 'moment', '@angular/material/list', '@angular/material/expansion', '@angular/cdk/scrolling', '@angular/material/sidenav', '@angular/material/tree', '@angular/material/menu', '@angular/platform-browser', '@angular/cdk/tree', '@angular/common/http', '@angular/material/button-toggle', '@angular/material/select', '@angular/material/snack-bar', '@ckeditor/ckeditor5-angular', 'jquery', 'lodash', 'buffer', '@angular/material/tooltip', '@angular/material/tabs', '@angular/material/progress-bar', '@angular/material/badge', '@angular/material/toolbar', '@angular/cdk/stepper', '@angular/material/stepper', '@angular/material/slide-toggle', '@angular/cdk/drag-drop'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['qms-angular'] = {}, global.ng.core, global.rxjs, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.radio, global.ng.material.dialog, global.rxjs.operators, global.ng.material.autocomplete, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.material.input, global.ng.material.card, global.ng.material.icon, global.ng.material.checkbox, global.ng.material.chips, global.ng.material.button, global.ng.material.core, global.ng.material.progressSpinner, global.ng.cdk.a11y, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.platformBrowser.animations, global.moment, global.ng.material.list, global.ng.material.expansion, global.ng.cdk.scrolling, global.ng.material.sidenav, global.ng.material.tree, global.ng.material.menu, global.ng.platformBrowser, global.ng.cdk.tree, global.ng.common.http, global.ng.material.buttonToggle, global.ng.material.select, global.ng.material.snackBar, global.ckeditor5Angular, global.$$1, global._, global.buffer, global.ng.material.tooltip, global.ng.material.tabs, global.ng.material.progressBar, global.ng.material.badge, global.ng.material.toolbar, global.ng.cdk.stepper, global.ng.material.stepper, global.ng.material.slideToggle, global.ng.cdk.dragDrop));
|
5
|
+
}(this, (function (exports, i0, rxjs, common, forms, formField, radio, dialog, operators, autocomplete, overlay, portal, input, card, icon, checkbox, chips, button, core, progressSpinner, a11y, coercion, collections, animations, moment, list, expansion, scrolling, sidenav, tree$1, menu, platformBrowser, tree, i1, buttonToggle, select, snackBar, ckeditor5Angular, $$1, _, buffer, tooltip, tabs, progressBar, badge, toolbar, stepper$1, stepper, slideToggle, dragDrop) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespace(e) {
|
8
8
|
if (e && e.__esModule) return e;
|
@@ -171,7 +171,24 @@
|
|
171
171
|
"INVALID_URL": "Invalid URL",
|
172
172
|
"REQUIRED_URL": "URL is required",
|
173
173
|
"CLOSE": "Close",
|
174
|
-
"DOCUMENT_PROCESS": "Document / Process"
|
174
|
+
"DOCUMENT_PROCESS": "Document / Process",
|
175
|
+
"UPLOAD_FILE_NOT_VALID_FORMAT": "The file uploaded is invalid format. Supported file formats: {0}",
|
176
|
+
"UPLOAD_FILE_OVERSIZE": "The file uploaded is over the limit size. The limit size is {0}MB",
|
177
|
+
"UPLOAD_FILE_FAILED": "Failed to upload file.",
|
178
|
+
"ASSISTIVE_TEXT": "Assistive text",
|
179
|
+
"WORDS": "Words",
|
180
|
+
"CHARACTERS": "Characters",
|
181
|
+
"SELECT_VIDEO_FROM_ARCHIVE": "Select video from the archive"
|
182
|
+
},
|
183
|
+
"ABOUT": {
|
184
|
+
"ABOUT_CKEDITOR": "About CKEditor",
|
185
|
+
"CKEDITOR5_VERSION": "CKEditor 5 version",
|
186
|
+
"FOR_LICENSING_INFORMATION_PLEASE_VISIT_OUR_WEBSITE": "For licensing information please visit our website",
|
187
|
+
"ALL_RIGHTS_RESERVED": "All rights reserved",
|
188
|
+
"CHECK": "Check",
|
189
|
+
"FOR_HELP": "for help",
|
190
|
+
"CKEDITOR_USERS_GUIDE": "CKEditor User's Guide",
|
191
|
+
"COPYRIGHT": "Copyright ©"
|
175
192
|
},
|
176
193
|
"BPMN": {
|
177
194
|
"DEFAULT": "Default",
|
@@ -451,7 +468,24 @@
|
|
451
468
|
"INVALID_URL": "Ugyldig URL",
|
452
469
|
"REQUIRED_URL": "URL er påkrevd",
|
453
470
|
"CLOSE": "Close",
|
454
|
-
"DOCUMENT_PROCESS": "Dokument / Prosess"
|
471
|
+
"DOCUMENT_PROCESS": "Dokument / Prosess",
|
472
|
+
"UPLOAD_FILE_NOT_VALID_FORMAT": "Filen som er lastet opp er ugyldig format. Støttede filformater: {0}",
|
473
|
+
"UPLOAD_FILE_OVERSIZE": "Filen som er lastet opp er over grensestørrelsen. Grensestørrelsen er {0}MB",
|
474
|
+
"UPLOAD_FILE_FAILED": "Kunne ikke laste opp filen.",
|
475
|
+
"ASSISTIVE_TEXT": "Hjelpende tekst",
|
476
|
+
"WORDS": "Ord",
|
477
|
+
"CHARACTERS": "Tegn",
|
478
|
+
"SELECT_VIDEO_FROM_ARCHIVE": "Velg video fra arkivet"
|
479
|
+
},
|
480
|
+
"ABOUT": {
|
481
|
+
"ABOUT_CKEDITOR": "Om CKEditor",
|
482
|
+
"CKEDITOR5_VERSION": "CKEditor 5 versjon",
|
483
|
+
"FOR_LICENSING_INFORMATION_PLEASE_VISIT_OUR_WEBSITE": "For lisensieringsinformasjon, besøk vår nettside",
|
484
|
+
"ALL_RIGHTS_RESERVED": "Alle rettigheter er forbeholdt",
|
485
|
+
"CHECK": "Se",
|
486
|
+
"FOR_HELP": "for hjelp",
|
487
|
+
"CKEDITOR_USERS_GUIDE": "brukerhåndboken for CKEditor",
|
488
|
+
"COPYRIGHT": "Opphavsrett ©"
|
455
489
|
},
|
456
490
|
"BPMN": {
|
457
491
|
"DEFAULT": "Standard",
|
@@ -703,7 +737,7 @@
|
|
703
737
|
QMSComment.decorators = [
|
704
738
|
{ type: i0.Component, args: [{
|
705
739
|
selector: 'qms-comment',
|
706
|
-
template: "<div class=\"qms-comment\" *ngFor=\"let item of sourceLog; let i = index\">\r\n <mat-card-header *ngIf=\"!item.isDelete\">\r\n <mat-card-subtitle
|
740
|
+
template: "<div class=\"qms-comment\" *ngFor=\"let item of sourceLog; let i = index\">\r\n <mat-card-header *ngIf=\"!item.isDelete\">\r\n <mat-card-subtitle>{{ item.user }} {{ item.date }} </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div\r\n qms-scrollbar\r\n *ngIf=\"!item.isEdit && !item.isDelete\"\r\n class=\"content\"\r\n [ngClass]=\"{ secondary: 0 != i % 2 }\"\r\n [innerHTML]=\"showContent(item.content)\"\r\n ></div>\r\n <div class=\"content delete-action-wrap\" *ngIf=\"item.isDelete\">\r\n <i>{{ LANG.DELETE_MESSAGE_COMMENT }}</i>\r\n <button qms-btn-text class=\"btn-action\" (click)=\"regretItem(item)\">\r\n {{ LANG.REGRET }}\r\n </button>\r\n </div>\r\n <mat-form-field *ngIf=\"item.isEdit && !item.isDelete\" qms-form-textarea>\r\n <textarea\r\n qms-scrollbar\r\n class=\"textarea-comment\"\r\n matInput\r\n cdkTextareaAutosize\r\n cdkAutosizeMinRows=\"1\"\r\n cdkAutosizeMaxRows=\"5\"\r\n [(ngModel)]=\"item.editedContent\"\r\n ></textarea>\r\n </mat-form-field>\r\n </mat-card-content>\r\n <mat-card-actions *ngIf=\"item.isDraft && !item.isEdit && !item.isDelete\">\r\n <a class=\"btn-action\" (click)=\"editContent(item)\"> {{ LANG.EDIT }} </a>\r\n <a class=\"btn-action ml-20\" (click)=\"removeItem(item)\">{{ LANG.DELETE }}</a>\r\n </mat-card-actions>\r\n <mat-card-actions *ngIf=\"item.isEdit\" class=\"edit-action-wrap\">\r\n <button qms-btn (click)=\"saveEditedContent(item)\">{{ LANG.SAVE }}</button>\r\n <button qms-btn-text (click)=\"item.isEdit = false\" class=\"ml-10\">\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </mat-card-actions>\r\n</div>\r\n",
|
707
741
|
host: { 'class': 'qms-comment' },
|
708
742
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
709
743
|
styles: ["@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWJ0bbck.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFUZ0bbck.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWZ0bbck.woff2) format(\"woff2\");unicode-range:U+1f??}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVp0bbck.woff2) format(\"woff2\");unicode-range:U+0370-03ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWp0bbck.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFW50bbck.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVZ0b.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCFPrEHJA.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCMPrEHJA.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCHPrEHJA.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCGPrEHJA.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrE.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.qms-comment{font-family:Open Sans;margin-bottom:1rem;display:block}.qms-comment .mat-card-subtitle{font-size:.75rem;color:rgba(0,0,0,.6)}.qms-comment .mat-card-content .content{padding:10px 16px;background-color:rgba(0,0,0,.04);display:block;border-radius:4px;font-size:.875rem;max-height:125px;overflow-y:auto}.qms-comment .mat-card-content .content.delete-action-wrap{display:flex;justify-content:space-between;align-items:center}.qms-comment .mat-card-content .content.secondary{background-color:rgba(62,87,183,.12)}.qms-comment .mat-card-content .qms-form{width:100%}.qms-comment .btn-action{color:#1954a9;font-weight:600;font-size:13px;cursor:pointer}.qms-comment .textarea-comment{font-size:.875rem}.ml-10{margin-left:10px}.mt-15{margin-top:15px}.ml-20{margin-left:20px}.edit-action-wrap{display:block;margin-top:-10px}"]
|
@@ -1775,86 +1809,6 @@
|
|
1775
1809
|
isLoading: [{ type: i0.Input }]
|
1776
1810
|
};
|
1777
1811
|
|
1778
|
-
var QMSDrawerContentDirective = /** @class */ (function () {
|
1779
|
-
function QMSDrawerContentDirective(ele) {
|
1780
|
-
this.ele = ele;
|
1781
|
-
}
|
1782
|
-
QMSDrawerContentDirective.prototype.ngOnInit = function () {
|
1783
|
-
if (this.ele) {
|
1784
|
-
this.ele.nativeElement.classList.add('qms-drawer-content');
|
1785
|
-
}
|
1786
|
-
};
|
1787
|
-
return QMSDrawerContentDirective;
|
1788
|
-
}());
|
1789
|
-
QMSDrawerContentDirective.decorators = [
|
1790
|
-
{ type: i0.Directive, args: [{
|
1791
|
-
selector: '[qms-drawer-content]',
|
1792
|
-
},] }
|
1793
|
-
];
|
1794
|
-
QMSDrawerContentDirective.ctorParameters = function () { return [
|
1795
|
-
{ type: i0.ElementRef }
|
1796
|
-
]; };
|
1797
|
-
|
1798
|
-
var QMSDrawerHeaderActionDirective = /** @class */ (function () {
|
1799
|
-
function QMSDrawerHeaderActionDirective(ele) {
|
1800
|
-
this.ele = ele;
|
1801
|
-
}
|
1802
|
-
QMSDrawerHeaderActionDirective.prototype.ngOnInit = function () {
|
1803
|
-
if (this.ele) {
|
1804
|
-
this.ele.nativeElement.classList.add('qms-drawer-header__action');
|
1805
|
-
}
|
1806
|
-
};
|
1807
|
-
return QMSDrawerHeaderActionDirective;
|
1808
|
-
}());
|
1809
|
-
QMSDrawerHeaderActionDirective.decorators = [
|
1810
|
-
{ type: i0.Directive, args: [{
|
1811
|
-
selector: '[qms-drawer-header-action]',
|
1812
|
-
},] }
|
1813
|
-
];
|
1814
|
-
QMSDrawerHeaderActionDirective.ctorParameters = function () { return [
|
1815
|
-
{ type: i0.ElementRef }
|
1816
|
-
]; };
|
1817
|
-
|
1818
|
-
var QMSDrawerHeaderDirective = /** @class */ (function () {
|
1819
|
-
function QMSDrawerHeaderDirective(ele) {
|
1820
|
-
this.ele = ele;
|
1821
|
-
}
|
1822
|
-
QMSDrawerHeaderDirective.prototype.ngOnInit = function () {
|
1823
|
-
if (this.ele) {
|
1824
|
-
this.ele.nativeElement.classList.add('qms-drawer-header');
|
1825
|
-
}
|
1826
|
-
};
|
1827
|
-
return QMSDrawerHeaderDirective;
|
1828
|
-
}());
|
1829
|
-
QMSDrawerHeaderDirective.decorators = [
|
1830
|
-
{ type: i0.Directive, args: [{
|
1831
|
-
selector: '[qms-drawer-header]',
|
1832
|
-
},] }
|
1833
|
-
];
|
1834
|
-
QMSDrawerHeaderDirective.ctorParameters = function () { return [
|
1835
|
-
{ type: i0.ElementRef }
|
1836
|
-
]; };
|
1837
|
-
|
1838
|
-
var QMSDrawerDirective = /** @class */ (function () {
|
1839
|
-
function QMSDrawerDirective(ele) {
|
1840
|
-
this.ele = ele;
|
1841
|
-
}
|
1842
|
-
QMSDrawerDirective.prototype.ngOnInit = function () {
|
1843
|
-
if (this.ele) {
|
1844
|
-
this.ele.nativeElement.classList.add('qms-drawer');
|
1845
|
-
}
|
1846
|
-
};
|
1847
|
-
return QMSDrawerDirective;
|
1848
|
-
}());
|
1849
|
-
QMSDrawerDirective.decorators = [
|
1850
|
-
{ type: i0.Directive, args: [{
|
1851
|
-
selector: '[qms-drawer]',
|
1852
|
-
},] }
|
1853
|
-
];
|
1854
|
-
QMSDrawerDirective.ctorParameters = function () { return [
|
1855
|
-
{ type: i0.ElementRef }
|
1856
|
-
]; };
|
1857
|
-
|
1858
1812
|
var QMSTextBlockLine = /** @class */ (function () {
|
1859
1813
|
function QMSTextBlockLine(elRef, renderer) {
|
1860
1814
|
this.elRef = elRef;
|
@@ -3185,62 +3139,12 @@
|
|
3185
3139
|
mode: [{ type: i0.Input, args: ['mode',] }]
|
3186
3140
|
};
|
3187
3141
|
|
3188
|
-
var QMSTableExpandDirective = /** @class */ (function () {
|
3189
|
-
function QMSTableExpandDirective(_el, renderer) {
|
3190
|
-
this._el = _el;
|
3191
|
-
this.renderer = renderer;
|
3192
|
-
this._el.nativeElement.classList.add('qms-table');
|
3193
|
-
}
|
3194
|
-
QMSTableExpandDirective.prototype.ngAfterViewChecked = function () {
|
3195
|
-
var e_1, _c;
|
3196
|
-
var matRows = this._el.nativeElement.querySelectorAll('mat-row');
|
3197
|
-
try {
|
3198
|
-
for (var _d = __values(Object.entries(matRows)), _e = _d.next(); !_e.done; _e = _d.next()) {
|
3199
|
-
var _f = __read(_e.value, 2), key = _f[0], value = _f[1];
|
3200
|
-
this.renderer.addClass(value, 'qms-row');
|
3201
|
-
}
|
3202
|
-
}
|
3203
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
3204
|
-
finally {
|
3205
|
-
try {
|
3206
|
-
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
3207
|
-
}
|
3208
|
-
finally { if (e_1) throw e_1.error; }
|
3209
|
-
}
|
3210
|
-
};
|
3211
|
-
return QMSTableExpandDirective;
|
3212
|
-
}());
|
3213
|
-
QMSTableExpandDirective.decorators = [
|
3214
|
-
{ type: i0.Directive, args: [{
|
3215
|
-
selector: '[qms-table-expand]',
|
3216
|
-
host: { 'class': 'qms-table-expand' }
|
3217
|
-
},] }
|
3218
|
-
];
|
3219
|
-
QMSTableExpandDirective.ctorParameters = function () { return [
|
3220
|
-
{ type: i0.ElementRef },
|
3221
|
-
{ type: i0.Renderer2 }
|
3222
|
-
]; };
|
3223
3142
|
var QMSTableDirective = /** @class */ (function () {
|
3224
3143
|
function QMSTableDirective(_el, renderer) {
|
3225
3144
|
this._el = _el;
|
3226
3145
|
this.renderer = renderer;
|
3227
3146
|
}
|
3228
3147
|
QMSTableDirective.prototype.ngAfterViewChecked = function () {
|
3229
|
-
var e_2, _c;
|
3230
|
-
var matRows = this._el.nativeElement.querySelectorAll('mat-row');
|
3231
|
-
try {
|
3232
|
-
for (var _d = __values(Object.entries(matRows)), _e = _d.next(); !_e.done; _e = _d.next()) {
|
3233
|
-
var _f = __read(_e.value, 2), key = _f[0], value = _f[1];
|
3234
|
-
this.renderer.addClass(value, 'qms-row');
|
3235
|
-
}
|
3236
|
-
}
|
3237
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
3238
|
-
finally {
|
3239
|
-
try {
|
3240
|
-
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
3241
|
-
}
|
3242
|
-
finally { if (e_2) throw e_2.error; }
|
3243
|
-
}
|
3244
3148
|
};
|
3245
3149
|
return QMSTableDirective;
|
3246
3150
|
}());
|
@@ -3260,21 +3164,20 @@
|
|
3260
3164
|
this.renderer = renderer;
|
3261
3165
|
}
|
3262
3166
|
QMSTableChildrenDirective.prototype.ngAfterViewChecked = function () {
|
3263
|
-
var
|
3167
|
+
var e_1, _c;
|
3264
3168
|
var matRows = this._el.nativeElement.querySelectorAll('mat-row');
|
3265
3169
|
try {
|
3266
3170
|
for (var _d = __values(Object.entries(matRows)), _e = _d.next(); !_e.done; _e = _d.next()) {
|
3267
3171
|
var _f = __read(_e.value, 2), key = _f[0], value = _f[1];
|
3268
3172
|
this.renderer.addClass(value, 'qms-row-children');
|
3269
|
-
this.renderer.addClass(value, 'qms-row-group');
|
3270
3173
|
}
|
3271
3174
|
}
|
3272
|
-
catch (
|
3175
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
3273
3176
|
finally {
|
3274
3177
|
try {
|
3275
3178
|
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
3276
3179
|
}
|
3277
|
-
finally { if (
|
3180
|
+
finally { if (e_1) throw e_1.error; }
|
3278
3181
|
}
|
3279
3182
|
};
|
3280
3183
|
return QMSTableChildrenDirective;
|
@@ -3289,18 +3192,6 @@
|
|
3289
3192
|
{ type: i0.ElementRef },
|
3290
3193
|
{ type: i0.Renderer2 }
|
3291
3194
|
]; };
|
3292
|
-
var QMSRowExpandDirective = /** @class */ (function () {
|
3293
|
-
function QMSRowExpandDirective() {
|
3294
|
-
}
|
3295
|
-
return QMSRowExpandDirective;
|
3296
|
-
}());
|
3297
|
-
QMSRowExpandDirective.decorators = [
|
3298
|
-
{ type: i0.Directive, args: [{
|
3299
|
-
selector: '[qms-row-expand]',
|
3300
|
-
host: { 'class': 'qms-row-expand' }
|
3301
|
-
},] }
|
3302
|
-
];
|
3303
|
-
QMSRowExpandDirective.ctorParameters = function () { return []; };
|
3304
3195
|
var QMSRowDetailDirective = /** @class */ (function () {
|
3305
3196
|
function QMSRowDetailDirective() {
|
3306
3197
|
}
|
@@ -3332,7 +3223,7 @@
|
|
3332
3223
|
this.focusClass = 'focus-grid-style';
|
3333
3224
|
this.onRowExpandEvent = new i0.EventEmitter();
|
3334
3225
|
}
|
3335
|
-
Object.defineProperty(CdkDetailRowDirective.prototype, "
|
3226
|
+
Object.defineProperty(CdkDetailRowDirective.prototype, "expanded", {
|
3336
3227
|
get: function () {
|
3337
3228
|
return this.opened;
|
3338
3229
|
},
|
@@ -3369,6 +3260,8 @@
|
|
3369
3260
|
CdkDetailRowDirective.prototype.ngOnChanges = function (changes) {
|
3370
3261
|
this.vcRef.clear();
|
3371
3262
|
if (this.othertRef && this.row) {
|
3263
|
+
if (this.opened)
|
3264
|
+
this.vcRef.createEmbeddedView(this.tRef, { $implicit: this.row });
|
3372
3265
|
this.vcRef.createEmbeddedView(this.othertRef, { $implicit: this.row });
|
3373
3266
|
}
|
3374
3267
|
};
|
@@ -3378,13 +3271,17 @@
|
|
3378
3271
|
if (this.othertRef && this.row) {
|
3379
3272
|
this.vcRef.createEmbeddedView(this.othertRef, { $implicit: this.row });
|
3380
3273
|
if (((_a = this.row) === null || _a === void 0 ? void 0 : _a.children) && ((_b = this.row) === null || _b === void 0 ? void 0 : _b.children.length) > 0) {
|
3381
|
-
this._el.nativeElement.classList.add('
|
3274
|
+
this._el.nativeElement.classList.add('expandable-group');
|
3382
3275
|
}
|
3383
3276
|
}
|
3384
3277
|
};
|
3385
3278
|
CdkDetailRowDirective.prototype.onClick = function () {
|
3386
3279
|
this.toggle();
|
3387
3280
|
};
|
3281
|
+
CdkDetailRowDirective.prototype.onKeydownHandler = function (event) {
|
3282
|
+
if (event.target == event.currentTarget)
|
3283
|
+
this.toggle();
|
3284
|
+
};
|
3388
3285
|
CdkDetailRowDirective.prototype.onClickItem = function (event) {
|
3389
3286
|
if (event && event.parentNode && event.parentNode.classList && !event.parentNode.classList.contains(this.focusClass)) {
|
3390
3287
|
var elements = document.getElementsByClassName(this.focusClass);
|
@@ -3400,25 +3297,13 @@
|
|
3400
3297
|
}
|
3401
3298
|
};
|
3402
3299
|
CdkDetailRowDirective.prototype.toggle = function () {
|
3403
|
-
if (this.
|
3404
|
-
this.
|
3405
|
-
|
3406
|
-
|
3407
|
-
|
3408
|
-
|
3409
|
-
|
3410
|
-
this.render();
|
3411
|
-
}
|
3412
|
-
this.opened = !this.opened;
|
3413
|
-
this.onRowExpandEvent.emit(this.opened);
|
3414
|
-
};
|
3415
|
-
CdkDetailRowDirective.prototype.render = function () {
|
3416
|
-
this.vcRef.clear();
|
3417
|
-
if (this.tRef && this.row) {
|
3418
|
-
this.vcRef.createEmbeddedView(this.tRef, { $implicit: this.row });
|
3419
|
-
if (this.othertRef) {
|
3420
|
-
this.vcRef.createEmbeddedView(this.othertRef, { $implicit: this.row });
|
3421
|
-
}
|
3300
|
+
if (this.tRef) {
|
3301
|
+
if (this.opened)
|
3302
|
+
this.vcRef.detach(0);
|
3303
|
+
else
|
3304
|
+
this.vcRef.createEmbeddedView(this.tRef, { $implicit: this.row }, 0);
|
3305
|
+
this.opened = !this.opened;
|
3306
|
+
this.onRowExpandEvent.emit(this.opened);
|
3422
3307
|
}
|
3423
3308
|
};
|
3424
3309
|
return CdkDetailRowDirective;
|
@@ -3434,15 +3319,97 @@
|
|
3434
3319
|
]; };
|
3435
3320
|
CdkDetailRowDirective.propDecorators = {
|
3436
3321
|
onRowExpandEvent: [{ type: i0.Output }],
|
3437
|
-
|
3322
|
+
expanded: [{ type: i0.HostBinding, args: ['class.qms-row-expanded',] }],
|
3438
3323
|
cdkDetailRow: [{ type: i0.Input }],
|
3439
3324
|
template: [{ type: i0.Input, args: ['cdkDetailRowTpl',] }],
|
3440
3325
|
otherTemplate: [{ type: i0.Input, args: ['cdkotherTemplate',] }],
|
3441
3326
|
onClick: [{ type: i0.HostListener, args: ['click',] }],
|
3327
|
+
onKeydownHandler: [{ type: i0.HostListener, args: ['keydown.enter', ['$event'],] }],
|
3442
3328
|
onClickItem: [{ type: i0.HostListener, args: ['document:click', ['$event.target'],] }],
|
3443
3329
|
onKeydown: [{ type: i0.HostListener, args: ['document:keydown', ['$event.target'],] }]
|
3444
3330
|
};
|
3445
3331
|
|
3332
|
+
var QMSTableRowDirective = /** @class */ (function () {
|
3333
|
+
function QMSTableRowDirective(_el, renderer) {
|
3334
|
+
this._el = _el;
|
3335
|
+
this.renderer = renderer;
|
3336
|
+
}
|
3337
|
+
QMSTableRowDirective.prototype.ngAfterViewChecked = function () {
|
3338
|
+
var e_1, _a;
|
3339
|
+
if (!this._rowData.disabled)
|
3340
|
+
this.renderer.setAttribute(this._el.nativeElement, 'tabindex', "0");
|
3341
|
+
else {
|
3342
|
+
var matButtons = this._el.nativeElement.querySelectorAll('button, [tabindex]');
|
3343
|
+
try {
|
3344
|
+
for (var _b = __values(Object.entries(matButtons)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
3345
|
+
var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
|
3346
|
+
this.renderer.setAttribute(value, "tabindex", "-1");
|
3347
|
+
}
|
3348
|
+
}
|
3349
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
3350
|
+
finally {
|
3351
|
+
try {
|
3352
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
3353
|
+
}
|
3354
|
+
finally { if (e_1) throw e_1.error; }
|
3355
|
+
}
|
3356
|
+
}
|
3357
|
+
};
|
3358
|
+
Object.defineProperty(QMSTableRowDirective.prototype, "cdkDetailRow", {
|
3359
|
+
set: function (value) {
|
3360
|
+
this._rowData = value;
|
3361
|
+
},
|
3362
|
+
enumerable: false,
|
3363
|
+
configurable: true
|
3364
|
+
});
|
3365
|
+
Object.defineProperty(QMSTableRowDirective.prototype, "disable", {
|
3366
|
+
get: function () {
|
3367
|
+
return this._rowData.disabled;
|
3368
|
+
},
|
3369
|
+
enumerable: false,
|
3370
|
+
configurable: true
|
3371
|
+
});
|
3372
|
+
Object.defineProperty(QMSTableRowDirective.prototype, "select", {
|
3373
|
+
get: function () {
|
3374
|
+
return this._rowData.selected;
|
3375
|
+
},
|
3376
|
+
enumerable: false,
|
3377
|
+
configurable: true
|
3378
|
+
});
|
3379
|
+
Object.defineProperty(QMSTableRowDirective.prototype, "group", {
|
3380
|
+
get: function () {
|
3381
|
+
return this._rowData.childen;
|
3382
|
+
},
|
3383
|
+
enumerable: false,
|
3384
|
+
configurable: true
|
3385
|
+
});
|
3386
|
+
Object.defineProperty(QMSTableRowDirective.prototype, "isDraft", {
|
3387
|
+
get: function () {
|
3388
|
+
return this._rowData.isDraft;
|
3389
|
+
},
|
3390
|
+
enumerable: false,
|
3391
|
+
configurable: true
|
3392
|
+
});
|
3393
|
+
return QMSTableRowDirective;
|
3394
|
+
}());
|
3395
|
+
QMSTableRowDirective.decorators = [
|
3396
|
+
{ type: i0.Directive, args: [{
|
3397
|
+
selector: '[qms-table-row]',
|
3398
|
+
host: { 'class': 'qms-table-row' }
|
3399
|
+
},] }
|
3400
|
+
];
|
3401
|
+
QMSTableRowDirective.ctorParameters = function () { return [
|
3402
|
+
{ type: i0.ElementRef },
|
3403
|
+
{ type: i0.Renderer2 }
|
3404
|
+
]; };
|
3405
|
+
QMSTableRowDirective.propDecorators = {
|
3406
|
+
cdkDetailRow: [{ type: i0.Input }],
|
3407
|
+
disable: [{ type: i0.HostBinding, args: ['class.qms-table-row-disabled',] }],
|
3408
|
+
select: [{ type: i0.HostBinding, args: ['class.qms-table-row-selected',] }],
|
3409
|
+
group: [{ type: i0.HostBinding, args: ['class.qms-table-row-group',] }],
|
3410
|
+
isDraft: [{ type: i0.HostBinding, args: ['class.qms-table-row-draft',] }]
|
3411
|
+
};
|
3412
|
+
|
3446
3413
|
var ɵ0$2 = { appearance: 'fill' }, ɵ1 = { color: 'none' };
|
3447
3414
|
var QmsAngularModule = /** @class */ (function () {
|
3448
3415
|
function QmsAngularModule() {
|
@@ -3481,16 +3448,11 @@
|
|
3481
3448
|
QMSScrollbarDirective,
|
3482
3449
|
QMSTextBlockDirective,
|
3483
3450
|
QMSTextBlockLine,
|
3484
|
-
QMSDrawerDirective,
|
3485
|
-
QMSDrawerHeaderDirective,
|
3486
|
-
QMSDrawerContentDirective,
|
3487
|
-
QMSDrawerHeaderActionDirective,
|
3488
3451
|
QMSToolTipRendererDirective,
|
3489
|
-
QMSTableExpandDirective,
|
3490
3452
|
QMSTableDirective,
|
3453
|
+
QMSTableRowDirective,
|
3491
3454
|
QMSRowDetailDirective,
|
3492
3455
|
QMSTableChildrenDirective,
|
3493
|
-
QMSRowExpandDirective,
|
3494
3456
|
CdkDetailRowDirective,
|
3495
3457
|
QMSCollapseGroupDirective,
|
3496
3458
|
DateFormatPipe,
|
@@ -3540,10 +3502,6 @@
|
|
3540
3502
|
QMSScrollbarDirective,
|
3541
3503
|
QMSTextBlockDirective,
|
3542
3504
|
QMSTextBlockLine,
|
3543
|
-
QMSDrawerDirective,
|
3544
|
-
QMSDrawerHeaderDirective,
|
3545
|
-
QMSDrawerContentDirective,
|
3546
|
-
QMSDrawerHeaderActionDirective,
|
3547
3505
|
QMSToolTipRendererDirective,
|
3548
3506
|
DateFormatPipe,
|
3549
3507
|
QMSChipInputDirective,
|
@@ -3555,11 +3513,10 @@
|
|
3555
3513
|
QMSTooltipImageDirective,
|
3556
3514
|
SelectDialog,
|
3557
3515
|
QMSAppBar,
|
3558
|
-
QMSTableExpandDirective,
|
3559
3516
|
QMSTableDirective,
|
3517
|
+
QMSTableRowDirective,
|
3560
3518
|
QMSTableChildrenDirective,
|
3561
3519
|
QMSRowDetailDirective,
|
3562
|
-
QMSRowExpandDirective,
|
3563
3520
|
CdkDetailRowDirective,
|
3564
3521
|
QMSCollapseGroupDirective
|
3565
3522
|
],
|
@@ -4959,19 +4916,12 @@
|
|
4959
4916
|
this.treeControl.dataNodes[i].disabled = false;
|
4960
4917
|
}
|
4961
4918
|
if (this.disabledList.length) {
|
4962
|
-
|
4963
|
-
|
4964
|
-
|
4965
|
-
|
4966
|
-
|
4967
|
-
|
4968
|
-
}
|
4969
|
-
});
|
4970
|
-
};
|
4971
|
-
var this_3 = this;
|
4972
|
-
for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
|
4973
|
-
_loop_3(i);
|
4974
|
-
}
|
4919
|
+
this.disabledList.forEach(function (x) {
|
4920
|
+
var index = _this.treeControl.dataNodes.findIndex(function (node) { return node.id === x.id && (!x.parentId || x.parentId === node.parentId); });
|
4921
|
+
if (index >= 0) {
|
4922
|
+
_this.treeControl.dataNodes[index].disabled = true;
|
4923
|
+
}
|
4924
|
+
});
|
4975
4925
|
}
|
4976
4926
|
//Selected node with select one
|
4977
4927
|
if (this.disabledList.length && this.treeConfig.selectOne) {
|
@@ -4983,33 +4933,32 @@
|
|
4983
4933
|
this.listChildNode = [];
|
4984
4934
|
this.getChild(listChildNodeSameLevel);
|
4985
4935
|
this.getChildNodeSelectOne.emit(this.listChildNode);
|
4986
|
-
var
|
4987
|
-
if (itemMarkChecked ===
|
4988
|
-
parentItem =
|
4989
|
-
|
4936
|
+
var _loop_3 = function (i) {
|
4937
|
+
if (itemMarkChecked === this_3.treeControl.dataNodes[i].id) {
|
4938
|
+
parentItem = this_3.treeControl.dataNodes[i].parentId;
|
4939
|
+
this_3.selectNodeEvent.emit(this_3.treeControl.dataNodes[i]);
|
4990
4940
|
}
|
4991
|
-
|
4941
|
+
this_3.disabledList.forEach(function (el) {
|
4992
4942
|
if (_this.treeControl.dataNodes[i].id === el.toUpperCase()) {
|
4993
4943
|
_this.treeControl.expand(_this.treeControl.dataNodes[i]);
|
4994
4944
|
}
|
4995
4945
|
});
|
4996
4946
|
// remove all children nodes when user dont need to show them
|
4997
|
-
|
4947
|
+
this_3.listChildNode.forEach(function (el) {
|
4998
4948
|
var _a;
|
4999
4949
|
if (el.id && ((_a = _this.treeControl.dataNodes[i]) === null || _a === void 0 ? void 0 : _a.id) === el.id) {
|
5000
4950
|
_this.treeControl.dataNodes.splice(i, 1);
|
5001
4951
|
}
|
5002
4952
|
});
|
5003
4953
|
};
|
5004
|
-
var
|
4954
|
+
var this_3 = this;
|
5005
4955
|
for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
|
5006
|
-
|
4956
|
+
_loop_3(i);
|
5007
4957
|
}
|
5008
4958
|
this.idCheckIcon = this.idToCheckSelectOne(itemMarkChecked, parentItem);
|
5009
4959
|
}
|
5010
4960
|
else {
|
5011
4961
|
this.idCheckIcon = '';
|
5012
|
-
this.treeControl.collapseAll();
|
5013
4962
|
this.cdRef.detectChanges();
|
5014
4963
|
}
|
5015
4964
|
};
|
@@ -5473,7 +5422,7 @@
|
|
5473
5422
|
}
|
5474
5423
|
};
|
5475
5424
|
TreeComponent.prototype.getNodeId = function (node) {
|
5476
|
-
return "_" + (node.parentId ? node.parentId : '') + "_" + node.id + "_" + node.level;
|
5425
|
+
return "_" + (node.parentId ? node.parentId.toLowerCase() : '') + "_" + node.id.toLowerCase() + "_" + node.level;
|
5477
5426
|
};
|
5478
5427
|
TreeComponent.prototype.getNodeByIdAndParentId = function (nodeId, parentId) {
|
5479
5428
|
return this.treeControl.dataNodes.find(function (x) {
|
@@ -5484,14 +5433,14 @@
|
|
5484
5433
|
this.treeControl.expand(node);
|
5485
5434
|
};
|
5486
5435
|
TreeComponent.prototype.idToCheckSelectOne = function (id, parentId) {
|
5487
|
-
return
|
5436
|
+
return id + "-" + parentId;
|
5488
5437
|
};
|
5489
5438
|
return TreeComponent;
|
5490
5439
|
}());
|
5491
5440
|
TreeComponent.decorators = [
|
5492
5441
|
{ type: i0.Component, args: [{
|
5493
5442
|
selector: 'qms-tree',
|
5494
|
-
template: "<mat-tree\r\n [dataSource]=\"dataSource\"\r\n [treeControl]=\"treeControl\"\r\n class=\"tree__container\"\r\n>\r\n <mat-tree-node\r\n class=\"tree-branch\"\r\n *matTreeNodeDef=\"let node\"\r\n matTreeNodeToggle\r\n matTreeNodePadding\r\n >\r\n <!-- form thu 1 - child -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n >\r\n </mat-checkbox>\r\n\r\n <!-- form thu 2 -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"ml-10 checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <div\r\n class=\"expand-node\"\r\n *ngIf=\"node.name && !onlyFolder\"\r\n [class.bgSelected]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n (click)=\"selectNode(node)\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <div class=\"expand-node__text\">\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.name && !onlyCheckBoxForChild\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n >\r\n {{ itemIcon }}\r\n </mat-icon>\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"itemIconSvg\"\r\n >\r\n </mat-icon>\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.path\"\r\n class=\"mat-icon\"\r\n [src]=\"itemIconPath\"\r\n />\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64\"\r\n [src]=\"getImagePath()\"\r\n />\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.none\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getItemIcon(node)\"\r\n ></mat-icon>\r\n <span\r\n class=\"text-node\"\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n </div>\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </div>\r\n </mat-tree-node>\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\r\n <!-- form thu 1 - parent -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild\"\r\n [checked]=\"descendantsAllSelected(node)\"\r\n [indeterminate]=\"descendantsPartiallySelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <button\r\n class=\"button-boder\"\r\n mat-icon-button\r\n matTreeNodeToggle\r\n [disableRipple]=\"!node.hasChild\"\r\n [attr.aria-label]=\"'toggle ' + node.filename\"\r\n *ngIf=\"node.name\"\r\n >\r\n <mat-icon\r\n *ngIf=\"openIcon && closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : closeIconColor\r\n }\"\r\n >{{ getNodeIcon(node) }}</mat-icon\r\n >\r\n <mat-icon\r\n *ngIf=\"!openIcon || !closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngClass]=\"{\r\n 'open-icon': treeControl.isExpanded(node),\r\n 'not-department-icon': moduleId !== dataType.document\r\n }\"\r\n [svgIcon]=\"getNodeIcon(node)\"\r\n >\r\n </mat-icon>\r\n </button>\r\n <span\r\n *ngIf=\"expandOnTitleClick\"\r\n matTreeNodeToggle\r\n class=\"text-node-parent\"\r\n style=\"cursor: pointer\"\r\n (click)=\"onExpandNode(node)\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : '#000000'\r\n }\"\r\n >\r\n <span>{{ node.name }}</span>\r\n </span>\r\n <span\r\n *ngIf=\"!expandOnTitleClick\"\r\n class=\"text-node-parent\"\r\n (click)=\"selectFolderNode(node)\"\r\n style=\"cursor: pointer\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <span\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </span>\r\n </mat-tree-node>\r\n</mat-tree>\r\n",
|
5443
|
+
template: "<mat-tree\r\n [dataSource]=\"dataSource\"\r\n [treeControl]=\"treeControl\"\r\n class=\"tree__container\"\r\n>\r\n <mat-tree-node\r\n class=\"tree-branch\"\r\n *matTreeNodeDef=\"let node\"\r\n matTreeNodeToggle\r\n matTreeNodePadding\r\n >\r\n <!-- form thu 1 - child -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n >\r\n </mat-checkbox>\r\n\r\n <!-- form thu 2 -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"ml-10 checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <div\r\n class=\"expand-node\"\r\n *ngIf=\"node.name && !onlyFolder\"\r\n [class.bgSelected]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n (click)=\"selectNode(node)\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <div class=\"expand-node__text\">\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.name && !onlyCheckBoxForChild\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n >\r\n {{ itemIcon }}\r\n </mat-icon>\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"itemIconSvg\"\r\n >\r\n </mat-icon>\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.path\"\r\n class=\"mat-icon\"\r\n [src]=\"itemIconPath\"\r\n />\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64\"\r\n [src]=\"getImagePath()\"\r\n />\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.none\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getItemIcon(node)\"\r\n ></mat-icon>\r\n <span\r\n class=\"text-node\"\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n </div>\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </div>\r\n </mat-tree-node>\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\r\n <!-- form thu 1 - parent -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild\"\r\n [checked]=\"descendantsAllSelected(node)\"\r\n [indeterminate]=\"descendantsPartiallySelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <button\r\n class=\"button-boder\"\r\n mat-icon-button\r\n matTreeNodeToggle\r\n [disableRipple]=\"!node.hasChild\"\r\n [attr.aria-label]=\"'toggle ' + node.filename\"\r\n *ngIf=\"node.name\"\r\n >\r\n <mat-icon\r\n *ngIf=\"openIcon && closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : closeIconColor\r\n }\"\r\n >{{ getNodeIcon(node) }}</mat-icon\r\n >\r\n <mat-icon\r\n *ngIf=\"!openIcon || !closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngClass]=\"{\r\n 'open-icon': treeControl.isExpanded(node),\r\n 'not-department-icon': moduleId !== dataType.document\r\n }\"\r\n [svgIcon]=\"getNodeIcon(node)\"\r\n >\r\n </mat-icon>\r\n </button>\r\n <span\r\n *ngIf=\"expandOnTitleClick\"\r\n matTreeNodeToggle\r\n class=\"text-node-parent\"\r\n style=\"cursor: pointer\"\r\n (click)=\"onExpandNode(node)\"\r\n [id]=\"getNodeId(node)\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : '#000000'\r\n }\"\r\n >\r\n <span>{{ node.name }}</span>\r\n </span>\r\n <span\r\n *ngIf=\"!expandOnTitleClick\"\r\n class=\"text-node-parent\"\r\n (click)=\"selectFolderNode(node)\"\r\n style=\"cursor: pointer\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <span\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </span>\r\n </mat-tree-node>\r\n</mat-tree>\r\n",
|
5495
5444
|
encapsulation: i0.ViewEncapsulation.None,
|
5496
5445
|
styles: ["@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWJ0bbck.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFUZ0bbck.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWZ0bbck.woff2) format(\"woff2\");unicode-range:U+1f??}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVp0bbck.woff2) format(\"woff2\");unicode-range:U+0370-03ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWp0bbck.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFW50bbck.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVZ0b.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCFPrEHJA.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCMPrEHJA.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCHPrEHJA.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCGPrEHJA.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrE.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.tree__container{font-family:Open Sans;font-style:normal;font-weight:400;font-size:.875rem;line-height:19px;color:#323232}.tree__container .mat-tree-node{color:#000;min-height:0}.tree__container .mat-tree-node .mat-checkbox.qms-group-options{padding:0}.tree__container .mat-tree-node .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:11px}.tree__container .button{margin-left:6px}.tree__container .button:focus,.tree__container .button:hover{background-color:#009ef2;border-radius:2px;width:auto}.tree__container .button-boder:focus,.tree__container .button:focus{outline:0}.tree__container .button-folder-boder:focus{outline:0}.tree__container .button-folder-boder:focus,.tree__container .button-folder-boder:hover{background-color:#009ef2;border-radius:2px;width:auto}.tree__container .expand-node{margin-left:8px;min-height:32px;justify-content:space-between;width:100%}.tree__container .expand-node,.tree__container .expand-node .expand-node__text{display:flex;align-items:center}.tree__container .expand-node .mat-icon{color:rgba(0,0,0,.6);margin-right:17px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.tree__container .expand-node .mat-icon svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.tree__container .expand-node.bgSelected .select-one-checked{color:#1954a9}.tree__container .text-node-parent{width:100%;display:flex;align-items:center;justify-content:space-between;margin-left:10px;cursor:pointer}.tree__container .text-node-parent.active-item{color:#1954a9!important}.tree__container .text-node-parent .select-one-checked{color:#1954a9}.tree__container .mr-11{margin-right:11px}.tree__container .ml-10{margin-left:10px}.tree__container .tree-branch:hover{background-color:#e5eefb}.tree__container .image-base64{width:20px;height:20px}.tree__container .mat-checkbox.qms-group-options.mat-checkbox-checked{background:transparent!important}::ng-deep .mat-tree .mat-checkbox.qms-group-options{padding:0}::ng-deep .mat-tree .mat-checkbox.qms-group-options.mat-checkbox-checked{background-color:transparent}::ng-deep .mat-tree .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:0}svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.open-icon.not-department-icon svg path,.open-icon svg path:first-child{fill:#1954a9}.mat-checkbox.mat-checkbox-disabled.qms-group-options.mat-checkbox-checked .mat-checkbox-background{background-color:#e0e0e0!important}"]
|
5497
5446
|
},] }
|
@@ -6125,7 +6074,7 @@
|
|
6125
6074
|
this.selectedNode = [];
|
6126
6075
|
if (this.treeConfig1.showCheckBox) {
|
6127
6076
|
index = this.checkedNodeList.findIndex(function (x) {
|
6128
|
-
return x.id === item.id && x.parentId === item.parentId;
|
6077
|
+
return x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6129
6078
|
});
|
6130
6079
|
}
|
6131
6080
|
if (index < 0) {
|
@@ -6135,13 +6084,13 @@
|
|
6135
6084
|
if (item.itemType === this.dataType.document) {
|
6136
6085
|
// document
|
6137
6086
|
var isExistInDisabled = this.disabledList2.findIndex(function (x) {
|
6138
|
-
return x.id && x.id.toLowerCase() === item.id.toLowerCase();
|
6087
|
+
return x.id && x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6139
6088
|
});
|
6140
6089
|
if (isExistInDisabled >= 0) {
|
6141
6090
|
return;
|
6142
6091
|
}
|
6143
6092
|
position = this.treeData2.findIndex(function (x) {
|
6144
|
-
return x.childId === item.id;
|
6093
|
+
return x.childId === item.id && x.rootId.toLowerCase() === item.parentId.toLowerCase();
|
6145
6094
|
});
|
6146
6095
|
if (position >= 0) {
|
6147
6096
|
node = this.treeData2[position];
|
@@ -6230,7 +6179,7 @@
|
|
6230
6179
|
}
|
6231
6180
|
else if (item.itemType === this.dataType.folder) {
|
6232
6181
|
position = this.treeData2.findIndex(function (x) {
|
6233
|
-
return x.rootId === item.id;
|
6182
|
+
return x.rootId === item.id && x.parentId === item.parentId;
|
6234
6183
|
});
|
6235
6184
|
typeId = item.itemType;
|
6236
6185
|
if (position >= 0) {
|
@@ -6271,13 +6220,13 @@
|
|
6271
6220
|
|| item.itemType === this.dataType.checklistCategory
|
6272
6221
|
|| item.itemType === this.dataType.riskFolder) && !this.canOnlySelectItem) {
|
6273
6222
|
position = this.treeData1.findIndex(function (x) {
|
6274
|
-
return x.rootId === item.id;
|
6223
|
+
return x.rootId.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6275
6224
|
});
|
6276
6225
|
this.selectNodeRecursive(this.treeData1[position], item.itemType);
|
6277
6226
|
}
|
6278
6227
|
else if (item.itemType === this.dataType.area) {
|
6279
6228
|
position = this.treeData1.findIndex(function (x) {
|
6280
|
-
return x.rootId === item.id;
|
6229
|
+
return x.rootId.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6281
6230
|
});
|
6282
6231
|
typeId = item.itemType;
|
6283
6232
|
if (position >= 0) {
|
@@ -6317,7 +6266,7 @@
|
|
6317
6266
|
else if (item.itemType === this.dataType.deviation ||
|
6318
6267
|
item.itemType === this.dataType.checklist) {
|
6319
6268
|
position = this.treeData1.findIndex(function (x) {
|
6320
|
-
return x.childId && x.childId.toLowerCase() === item.id.toLowerCase();
|
6269
|
+
return x.childId && x.childId.toLowerCase() === item.id.toLowerCase() && x.rootId.toLowerCase() === item.parentId.toLowerCase();
|
6321
6270
|
});
|
6322
6271
|
if (position >= 0) {
|
6323
6272
|
node = this.treeData1[position];
|
@@ -6333,13 +6282,13 @@
|
|
6333
6282
|
}
|
6334
6283
|
else {
|
6335
6284
|
var isExistInDisabled = this.disabledList.findIndex(function (x) {
|
6336
|
-
return x.id && x.id.toLowerCase() === item.id.toLowerCase();
|
6285
|
+
return x.id && x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6337
6286
|
});
|
6338
6287
|
if (isExistInDisabled >= 0) {
|
6339
6288
|
return;
|
6340
6289
|
}
|
6341
6290
|
position = this.treeData1.findIndex(function (x) {
|
6342
|
-
return x.childId && x.childId.toLowerCase() === item.id.toLowerCase();
|
6291
|
+
return x.childId && x.childId.toLowerCase() === item.id.toLowerCase() && x.rootId.toLowerCase() === item.parentId.toLowerCase();
|
6343
6292
|
});
|
6344
6293
|
if (position >= 0) {
|
6345
6294
|
node = this.treeData1[position];
|
@@ -8097,6 +8046,10 @@
|
|
8097
8046
|
QMSCKEditorTreeService.prototype.getProcessList = function () {
|
8098
8047
|
return this.get('ckeditorTree/GetProcessList');
|
8099
8048
|
};
|
8049
|
+
QMSCKEditorTreeService.prototype.getUploadVideoList = function (folderId) {
|
8050
|
+
if (folderId === void 0) { folderId = null; }
|
8051
|
+
return this.get('ckeditorTree/GetUploadVideoList', { folderId: folderId });
|
8052
|
+
};
|
8100
8053
|
return QMSCKEditorTreeService;
|
8101
8054
|
}(QMSCKEditorBaseService));
|
8102
8055
|
QMSCKEditorTreeService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSCKEditorTreeService_Factory() { return new QMSCKEditorTreeService(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(QMSCKEditorGlobalService)); }, token: QMSCKEditorTreeService, providedIn: "root" });
|
@@ -8541,6 +8494,9 @@
|
|
8541
8494
|
this.anchorByName = url.substr(hashIndex + 1, url.length - hashIndex);
|
8542
8495
|
this.anchorTitle = this.data.title;
|
8543
8496
|
}
|
8497
|
+
else if (typeId === exports.LinkType.url) {
|
8498
|
+
//selectedProtocol
|
8499
|
+
}
|
8544
8500
|
};
|
8545
8501
|
QMSCKEditorLinkComponent.prototype.onSelectedLinkType = function () {
|
8546
8502
|
if (this.selectedLink === exports.LinkType.anchorText) {
|
@@ -9203,31 +9159,95 @@
|
|
9203
9159
|
{ type: String, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
9204
9160
|
]; };
|
9205
9161
|
|
9206
|
-
var
|
9207
|
-
function
|
9162
|
+
var QmsUploadAdapter = /** @class */ (function () {
|
9163
|
+
function QmsUploadAdapter(loader, config) {
|
9208
9164
|
this.loader = loader;
|
9165
|
+
this.config = config;
|
9166
|
+
this.config.imageUploadTypes = this.config.imageUploadTypes || 'png,jpeg,jpg';
|
9167
|
+
this.config.maxFileSizeMB = this.config.maxFileSizeMB || 2;
|
9168
|
+
if (this.config.imageUploadTypes.indexOf('jpeg') > -1) {
|
9169
|
+
this.config.imageUploadTypes += ',jpg';
|
9170
|
+
}
|
9171
|
+
else if (this.config.imageUploadTypes.indexOf('jpg') > -1) {
|
9172
|
+
this.config.imageUploadTypes += ',jpeg';
|
9173
|
+
}
|
9209
9174
|
}
|
9210
|
-
|
9175
|
+
QmsUploadAdapter.prototype.abort = function () {
|
9176
|
+
if (this.xhr) {
|
9177
|
+
this.xhr.abort();
|
9178
|
+
}
|
9179
|
+
};
|
9180
|
+
QmsUploadAdapter.prototype._initRequest = function () {
|
9181
|
+
var xhr = this.xhr = new XMLHttpRequest();
|
9182
|
+
xhr.open('POST', this.config.apiUrl + "ckeditorUpload/UploadImage", true);
|
9183
|
+
xhr.responseType = 'json';
|
9184
|
+
};
|
9185
|
+
QmsUploadAdapter.prototype._initListeners = function (resolve, reject, filename) {
|
9186
|
+
var xhr = this.xhr;
|
9187
|
+
var loader = this.loader;
|
9188
|
+
var genericErrorText = this.config.LANG.QMSCKEDITOR.FAILED_TO_UPLOAD_FILE + ": " + filename + ".";
|
9189
|
+
xhr.addEventListener('error', function () { return reject(genericErrorText); });
|
9190
|
+
xhr.addEventListener('abort', function () { return reject(); });
|
9191
|
+
xhr.addEventListener('load', function () {
|
9192
|
+
var response = xhr.response;
|
9193
|
+
if (!response || response.error) {
|
9194
|
+
return reject(response && response.error ? response.error.message : genericErrorText);
|
9195
|
+
}
|
9196
|
+
resolve({ default: response });
|
9197
|
+
});
|
9198
|
+
if (xhr.upload) {
|
9199
|
+
xhr.upload.addEventListener('progress', function (evt) {
|
9200
|
+
if (evt.lengthComputable) {
|
9201
|
+
loader.uploadTotal = evt.total;
|
9202
|
+
loader.uploaded = evt.loaded;
|
9203
|
+
}
|
9204
|
+
});
|
9205
|
+
}
|
9206
|
+
};
|
9207
|
+
QmsUploadAdapter.prototype._sendRequest = function (file) {
|
9208
|
+
var data = new FormData();
|
9209
|
+
data.append('file', file, file.name);
|
9210
|
+
data.append('name', file.name);
|
9211
|
+
this.xhr.send(data);
|
9212
|
+
};
|
9213
|
+
QmsUploadAdapter.prototype._getExtension = function (file) {
|
9214
|
+
if (!file.name) {
|
9215
|
+
return '';
|
9216
|
+
}
|
9217
|
+
var filenames = file.name.toLowerCase().split('.');
|
9218
|
+
if (filenames.length < 1) {
|
9219
|
+
return '';
|
9220
|
+
}
|
9221
|
+
return filenames[1];
|
9222
|
+
};
|
9223
|
+
QmsUploadAdapter.prototype.upload = function () {
|
9224
|
+
var _this = this;
|
9211
9225
|
return this.loader.file
|
9212
9226
|
.then(function (file) {
|
9213
9227
|
return new Promise(function (resolve, reject) {
|
9214
|
-
var
|
9215
|
-
|
9216
|
-
|
9228
|
+
var reader = new FileReader();
|
9229
|
+
reader.readAsArrayBuffer(file);
|
9230
|
+
reader.onload = function () {
|
9231
|
+
var fileExtension = _this._getExtension(file);
|
9232
|
+
if (_this.config.imageUploadTypes.indexOf(fileExtension) > -1) {
|
9233
|
+
if (file.size > (_this.config.maxFileSizeMB * 1024 * 1024)) {
|
9234
|
+
reject(("" + _this.config.LANG.QMSCKEDITOR.UPLOAD_FILE_OVERSIZE).replace('{0}', _this.config.maxFileSizeMB.toString()));
|
9235
|
+
}
|
9236
|
+
_this._initRequest();
|
9237
|
+
_this._initListeners(resolve, reject, file.name);
|
9238
|
+
_this._sendRequest(file);
|
9239
|
+
}
|
9240
|
+
else {
|
9241
|
+
reject(("" + _this.config.LANG.QMSCKEDITOR.UPLOAD_FILE_NOT_VALID_FORMAT).replace('{0}', _this.config.imageUploadTypes));
|
9242
|
+
}
|
9217
9243
|
};
|
9218
|
-
// if (file.size > 512000) {
|
9219
|
-
// const msg = `${file.name} is more than 500kb. Sorry, it has to be less than or equal to 500kb`;
|
9220
|
-
// QMSCKEditorToastService.error(msg);
|
9221
|
-
// reject();
|
9222
|
-
// }
|
9223
|
-
myReader.readAsDataURL(file);
|
9224
9244
|
});
|
9225
9245
|
})
|
9226
9246
|
.catch(function (error) {
|
9227
9247
|
throw error;
|
9228
9248
|
});
|
9229
9249
|
};
|
9230
|
-
return
|
9250
|
+
return QmsUploadAdapter;
|
9231
9251
|
}());
|
9232
9252
|
|
9233
9253
|
var CKEditorEventConst = /** @class */ (function () {
|
@@ -9252,7 +9272,9 @@
|
|
9252
9272
|
CKEditorEventConst.QMSCK_FLOWCHART_PLUGIN_MSG = 'QMSCK_FLOWCHART_PLUGIN_MSG';
|
9253
9273
|
CKEditorEventConst.QMSCK_FLOWCHART_PLUGIN_RESP = 'QMSCK_FLOWCHART_PLUGIN_RESP';
|
9254
9274
|
CKEditorEventConst.QMSCK_FLOWCHART = 'flowchart';
|
9255
|
-
CKEditorEventConst.QMSCK_TOGGLE_TOOLBAR_MSG = 'QMSCK_TOGGLE_TOOLBAR_MSG';
|
9275
|
+
CKEditorEventConst.QMSCK_TOGGLE_TOOLBAR_MSG = 'QMSCK_TOGGLE_TOOLBAR_MSG';
|
9276
|
+
CKEditorEventConst.QMSCK_BROWSE_VIDEO_MSG = 'QMSCK_BROWSE_VIDEO_MSG';
|
9277
|
+
CKEditorEventConst.QMSCK_BROWSE_VIDEO_RESP = 'QMSCK_BROWSE_VIDEO_RESP';
|
9256
9278
|
|
9257
9279
|
var IFRAME_SRC = '//cdn.iframe.ly/api/iframe';
|
9258
9280
|
var API_KEY = 'b499e92e857f435c39c14d';
|
@@ -13366,6 +13388,26 @@
|
|
13366
13388
|
CKEditorLinkConst.AREA_PARTIAL_URL = '/area/detail/';
|
13367
13389
|
CKEditorLinkConst.PROCESS_PARTIAL_URL = '/process-detail/';
|
13368
13390
|
|
13391
|
+
var QMSCKEditorUploadService = /** @class */ (function (_super) {
|
13392
|
+
__extends(QMSCKEditorUploadService, _super);
|
13393
|
+
function QMSCKEditorUploadService() {
|
13394
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
13395
|
+
}
|
13396
|
+
QMSCKEditorUploadService.prototype.uploadImage = function (file) {
|
13397
|
+
var formData = new FormData();
|
13398
|
+
formData.append('name', file.name);
|
13399
|
+
formData.append('file', file);
|
13400
|
+
return this.post('ckeditorUpload/UploadImage', formData);
|
13401
|
+
};
|
13402
|
+
return QMSCKEditorUploadService;
|
13403
|
+
}(QMSCKEditorBaseService));
|
13404
|
+
QMSCKEditorUploadService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSCKEditorUploadService_Factory() { return new QMSCKEditorUploadService(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(QMSCKEditorGlobalService)); }, token: QMSCKEditorUploadService, providedIn: "root" });
|
13405
|
+
QMSCKEditorUploadService.decorators = [
|
13406
|
+
{ type: i0.Injectable, args: [{
|
13407
|
+
providedIn: 'root'
|
13408
|
+
},] }
|
13409
|
+
];
|
13410
|
+
|
13369
13411
|
var ILink = /** @class */ (function () {
|
13370
13412
|
function ILink() {
|
13371
13413
|
this.target = exports.TargetTypeName.new;
|
@@ -13379,13 +13421,14 @@
|
|
13379
13421
|
}());
|
13380
13422
|
var QMSCKEditorBpmnComponent = /** @class */ (function (_super) {
|
13381
13423
|
__extends(QMSCKEditorBpmnComponent, _super);
|
13382
|
-
function QMSCKEditorBpmnComponent(dialog, translate, bmpnService, bpmnApiService, linkService, dialogRef, data) {
|
13424
|
+
function QMSCKEditorBpmnComponent(dialog, translate, bmpnService, bpmnApiService, linkService, uploadService, dialogRef, data) {
|
13383
13425
|
var _this = _super.call(this) || this;
|
13384
13426
|
_this.dialog = dialog;
|
13385
13427
|
_this.translate = translate;
|
13386
13428
|
_this.bmpnService = bmpnService;
|
13387
13429
|
_this.bpmnApiService = bpmnApiService;
|
13388
13430
|
_this.linkService = linkService;
|
13431
|
+
_this.uploadService = uploadService;
|
13389
13432
|
_this.dialogRef = dialogRef;
|
13390
13433
|
_this.data = data;
|
13391
13434
|
_this.expandedPanel = true;
|
@@ -13566,6 +13609,19 @@
|
|
13566
13609
|
});
|
13567
13610
|
});
|
13568
13611
|
};
|
13612
|
+
QMSCKEditorBpmnComponent.prototype.dataUrlToFile = function (dataUrl, filename) {
|
13613
|
+
var arr = dataUrl.split(',');
|
13614
|
+
if (arr.length < 2) {
|
13615
|
+
return undefined;
|
13616
|
+
}
|
13617
|
+
var mimeArr = arr[0].match(/:(.*?);/);
|
13618
|
+
if (!mimeArr || mimeArr.length < 2) {
|
13619
|
+
return undefined;
|
13620
|
+
}
|
13621
|
+
var mime = mimeArr[1];
|
13622
|
+
var buff = buffer.Buffer.from(arr[1], 'base64');
|
13623
|
+
return new File([buff], filename, { type: mime });
|
13624
|
+
};
|
13569
13625
|
QMSCKEditorBpmnComponent.prototype.getImageContent = function (paper) {
|
13570
13626
|
return __awaiter(this, void 0, void 0, function () {
|
13571
13627
|
return __generator(this, function (_b) {
|
@@ -13580,7 +13636,7 @@
|
|
13580
13636
|
};
|
13581
13637
|
QMSCKEditorBpmnComponent.prototype.onInsertImage = function () {
|
13582
13638
|
return __awaiter(this, void 0, void 0, function () {
|
13583
|
-
var graph, paper, clientRect, graphObject, id, imageContent, _b, imagemap, result;
|
13639
|
+
var graph, paper, clientRect, graphObject, id, imageContent, _b, file, imageUrl, imagemap, result;
|
13584
13640
|
return __generator(this, function (_c) {
|
13585
13641
|
switch (_c.label) {
|
13586
13642
|
case 0:
|
@@ -13595,8 +13651,12 @@
|
|
13595
13651
|
return [4 /*yield*/, this.getImageContent(paper)];
|
13596
13652
|
case 2:
|
13597
13653
|
imageContent = _b + (_c.sent());
|
13654
|
+
file = this.dataUrlToFile(imageContent, CKEditorEventConst.QMSCK_BPMN + "#" + id);
|
13655
|
+
return [4 /*yield*/, this.uploadService.uploadImage(file).toPromise()];
|
13656
|
+
case 3:
|
13657
|
+
imageUrl = _c.sent();
|
13598
13658
|
imagemap = this.toImageMap(id, graphObject.cells, clientRect);
|
13599
|
-
result = { key: CKEditorEventConst.QMSCK_BPMN + "#" + id, values:
|
13659
|
+
result = { key: CKEditorEventConst.QMSCK_BPMN + "#" + id, values: imageUrl, imagemap: imagemap };
|
13600
13660
|
this.dialogRef.close(result);
|
13601
13661
|
return [2 /*return*/];
|
13602
13662
|
}
|
@@ -14159,6 +14219,7 @@
|
|
14159
14219
|
{ type: BpmnService },
|
14160
14220
|
{ type: QMSCKEditorBpmnApiService },
|
14161
14221
|
{ type: QMSCKEditorLinkService },
|
14222
|
+
{ type: QMSCKEditorUploadService },
|
14162
14223
|
{ type: dialog.MatDialogRef },
|
14163
14224
|
{ type: QMSCKEditorBpmnData, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
14164
14225
|
]; };
|
@@ -16196,6 +16257,7 @@
|
|
16196
16257
|
_this.anchorText = '';
|
16197
16258
|
//anchorByName = '';
|
16198
16259
|
_this.advisoryTitle = '';
|
16260
|
+
_this.isImageLoading = false;
|
16199
16261
|
_this.isUrlProcessing = false;
|
16200
16262
|
_this.naturalImageWidth = 0;
|
16201
16263
|
_this.naturalImageHeight = 0;
|
@@ -16330,8 +16392,10 @@
|
|
16330
16392
|
QMSCKEditorImageMapComponent.prototype.ngAfterViewInit = function () {
|
16331
16393
|
var _this = this;
|
16332
16394
|
if (this.myImageRef) {
|
16395
|
+
this.isImageLoading = true;
|
16333
16396
|
this.imageListeners.push(this.renderer.listen(this.myImageRef.nativeElement, 'load', function () {
|
16334
16397
|
_this.onImageLoad();
|
16398
|
+
_this.isImageLoading = false;
|
16335
16399
|
}));
|
16336
16400
|
}
|
16337
16401
|
// Avoid drag&drop of the image
|
@@ -16366,9 +16430,9 @@
|
|
16366
16430
|
}
|
16367
16431
|
});
|
16368
16432
|
};
|
16369
|
-
QMSCKEditorImageMapComponent.prototype.parseLinkUrl = function (url
|
16433
|
+
QMSCKEditorImageMapComponent.prototype.parseLinkUrl = function (url) {
|
16370
16434
|
var protocol = this.protocolRegex.exec(url);
|
16371
|
-
if (protocol) {
|
16435
|
+
if (!!protocol) {
|
16372
16436
|
this.processedUrl = url.substr(protocol[0].length);
|
16373
16437
|
this.url = this.processedUrl;
|
16374
16438
|
this.selectedProtocol = protocol[0].toLowerCase();
|
@@ -16381,9 +16445,7 @@
|
|
16381
16445
|
else {
|
16382
16446
|
this.processedUrl = url;
|
16383
16447
|
this.url = this.processedUrl;
|
16384
|
-
|
16385
|
-
this.selectedProtocol = defaultProtocolName || exports.ProtocolTypeName.http;
|
16386
|
-
}
|
16448
|
+
this.selectedProtocol = exports.ProtocolTypeName.other;
|
16387
16449
|
}
|
16388
16450
|
};
|
16389
16451
|
QMSCKEditorImageMapComponent.prototype.onSelectArea = function (area) {
|
@@ -16660,8 +16722,8 @@
|
|
16660
16722
|
QMSCKEditorImageMapComponent.decorators = [
|
16661
16723
|
{ type: i0.Component, args: [{
|
16662
16724
|
selector: 'app-qmsck-imagemap',
|
16663
|
-
template: "<div id=\"qmsckeditor-imagemap\" class=\"qmsckeditor qmsckeditor__imagemap__container\">\r\n <div id=\"qmsckeditor-imagemap-header\">\r\n <span id=\"qmsckeditor-imagemap-header_001\" mat-icon-button class=\"qmsckeditor button__close\"\r\n (click)=\"onCloseDialog()\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmsckeditor-imagemap-header_002\" mat-dialog-content>\r\n <h2 id=\"qmsckeditor-imagemap_002_001\">\r\n {{ LANG.QMSCKEDITOR.IMAGE_MAP_PROPERTIES }}\r\n </h2>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor-imagemap-content\">\r\n <div id=\"qmsckeditor-imagemap-content_001\" class=\"col-12 mt-1 pl-2 pr-2\">\r\n <mat-expansion-panel id=\"qmsckeditor-imagemap-panel\" [expanded]=\"true\" (opened)=\"(true)\" (closed)=\"(false)\">\r\n <div id=\"qmsckeditor-imagemap-panel_001\">\r\n <div id=\"qmsckeditor-imagemap-panel_001_001\" class=\"qmsckeditor__imagemap__information\">\r\n <form [formGroup]=\"imageMapFormGroup\">\r\n <div class=\"row\">\r\n <div class=\"col-9\">\r\n <mat-button-toggle-group [(ngModel)]=\"selectedMode\" formControlName=\"modeList\"\r\n (change)=\"onModeChange($event)\">\r\n <mat-button-toggle *ngFor=\"let mode of modes\" [value]=\"mode.id\"\r\n [matTooltip]=\"mode.name\">\r\n <mat-icon color=\"red\" [svgIcon]=\"mode.icon\" aria-hidden=\"true\">\r\n </mat-icon>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n <span style=\"margin-left: 15px;\" #myStatus></span>\r\n </div>\r\n <div class=\"col-3\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ZOOM }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedZoom\" formControlName=\"zoomList\"\r\n (ngModelChange)=\"onZoomChange()\" disableOptionCentering>\r\n <mat-option *ngFor=\"let zoomType of zoomTypes\" [value]=\"zoomType.id\">\r\n {{ zoomType.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <div class=\"row\" [ngClass]=\"{'hidden': !showImageMapInformation}\">\r\n <div class=\"col-3\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_TYPE }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedLinkType\" formControlName=\"linkTypeList\"\r\n (ngModelChange)=\"onLinkTypeChange()\" disableOptionCentering>\r\n <mat-option *ngFor=\"let link of linkTypes\" [value]=\"link.id\">\r\n {{ link.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"col-3\" *ngIf=\"selectedLinkType === 0\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.TARGET }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedTarget\" formControlName=\"targetList\"\r\n (ngModelChange)=\"onTargetChange()\" disableOptionCentering>\r\n <mat-option *ngFor=\"let target of targets\" [value]=\"target.id\">\r\n {{ target.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <div class=\"row\" [ngClass]=\"{'hidden': !showImageMapInformation}\"\r\n *ngIf=\"selectedLinkType === 1\">\r\n <div class=\"col-3\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\r\n <mat-select [(ngModel)]=\"anchorText\" formControlName=\"anchorTextList\"\r\n (ngModelChange)=\"onAnchorTextChange()\">\r\n <mat-option *ngFor=\"let editorAnchor of editorAnchors\"\r\n [value]=\"editorAnchor.anchorValue\" disableOptionCentering>\r\n {{ editorAnchor.viewValue }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <div class=\"row\" [ngClass]=\"{'hidden': !showImageMapInformation}\"\r\n *ngIf=\"selectedLinkType === 0\">\r\n <div class=\"col-3\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.PROTOCOL }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedProtocol\" formControlName=\"protocolList\"\r\n (ngModelChange)=\"onProtocolChange()\" disableOptionCentering>\r\n <mat-option *ngFor=\"let protocol of protocols\" [value]=\"protocol.id\">\r\n {{ protocol.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"col-5\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_URL }}</mat-label>\r\n <input matInput [(ngModel)]=\"url\" name=\"url\" formControlName=\"url\"\r\n (ngModelChange)=\"onUrlChange()\" (keyup)=\"onUrlKeyup()\" />\r\n <mat-error *ngIf=\"imageMapFormGroup.get('url').hasError('required')\">{{\r\n LANG.QMSCKEDITOR.REQUIRED_URL }}\r\n </mat-error>\r\n <mat-error *ngIf=\"imageMapFormGroup.get('url').hasError('invalidURL')\">{{\r\n LANG.QMSCKEDITOR.INVALID_URL }}</mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"col-4\">\r\n <div class=\"row button__groups\">\r\n <div class=\"col-6\">\r\n <button class=\"save\" mat-stroked-button (click)=\"attachment()\">\r\n {{ LANG.QMSCKEDITOR.ATTACHMENT }}\r\n </button>\r\n </div>\r\n <div class=\"col-6\">\r\n <button class=\"save\" mat-stroked-button (click)=\"eHandbook(false, false)\">\r\n {{ LANG.QMSCKEDITOR.HANDBOOK }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n <div id=\"qmsckeditor-imagemap-panel_001_002\" class=\"qmsckeditor__imagemap__map\">\r\n <img #myImage [src]=\"imageMapData.imageUrl\">\r\n </div>\r\n <div id=\"qmsckeditor-imagemap-panel_001_003\" class=\"qmsckeditor button__groups row mr-0 ml-0 mt-4\">\r\n <div class=\"col-4 pr-0\">\r\n <button class=\"save\" mat-flat-button (click)=\"removeMap()\">\r\n {{ LANG.QMSCKEDITOR.REMOVE_MAP }}\r\n </button>\r\n </div>\r\n <div class=\"col-4 pr-0\">\r\n <button class=\"save\" mat-flat-button (click)=\"save()\">\r\n {{ LANG.QMSCKEDITOR.SAVE }}\r\n </button>\r\n </div>\r\n <div class=\"col-4 pl-0\">\r\n <button class=\"cancel\" mat-flat-button (click)=\"cancel()\">\r\n {{ LANG.QMSCKEDITOR.CANCEL }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </div>\r\n</div>",
|
16664
|
-
styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}.qmsckeditor__imagemap__container .mat-form-field{width:100%}.qmsckeditor__imagemap__container .qmsckeditor__imagemap__information{position:relative}.qmsckeditor__imagemap__container .qmsckeditor__imagemap__map{overflow:auto;width:800px;min-height:371px;position:relative;max-height:460px}.qmsckeditor__imagemap__container .mat-button-toggle-checked{border:1px solid #000!important}.qmsckeditor__imagemap__container .hidden{visibility:hidden}"]
|
16725
|
+
template: "<div id=\"qmsckeditor-imagemap\" class=\"qmsckeditor qmsckeditor__imagemap__container\">\r\n <div id=\"qmsckeditor-imagemap-header\">\r\n <span id=\"qmsckeditor-imagemap-header_001\" mat-icon-button class=\"qmsckeditor button__close\"\r\n (click)=\"onCloseDialog()\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmsckeditor-imagemap-header_002\" mat-dialog-content>\r\n <h2 id=\"qmsckeditor-imagemap_002_001\">\r\n {{ LANG.QMSCKEDITOR.IMAGE_MAP_PROPERTIES }}\r\n </h2>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor-imagemap-content\">\r\n <div id=\"qmsckeditor-imagemap-content_001\" class=\"col-12 mt-1 pl-2 pr-2\">\r\n <mat-expansion-panel id=\"qmsckeditor-imagemap-panel\" [expanded]=\"true\" (opened)=\"(true)\" (closed)=\"(false)\">\r\n <div id=\"qmsckeditor-imagemap-panel_001\">\r\n <div id=\"qmsckeditor-imagemap-panel_001_001\" class=\"qmsckeditor__imagemap__information\">\r\n <form [formGroup]=\"imageMapFormGroup\">\r\n <div class=\"row\">\r\n <div class=\"col-9\">\r\n <mat-button-toggle-group [(ngModel)]=\"selectedMode\" formControlName=\"modeList\"\r\n (change)=\"onModeChange($event)\">\r\n <mat-button-toggle *ngFor=\"let mode of modes\" [value]=\"mode.id\"\r\n [matTooltip]=\"mode.name\">\r\n <mat-icon color=\"red\" [svgIcon]=\"mode.icon\" aria-hidden=\"true\">\r\n </mat-icon>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n <span style=\"margin-left: 15px;\" #myStatus></span>\r\n </div>\r\n <div class=\"col-3\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ZOOM }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedZoom\" formControlName=\"zoomList\"\r\n (ngModelChange)=\"onZoomChange()\" disableOptionCentering>\r\n <mat-option *ngFor=\"let zoomType of zoomTypes\" [value]=\"zoomType.id\">\r\n {{ zoomType.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <div class=\"row\" [ngClass]=\"{'hidden': !showImageMapInformation}\">\r\n <div class=\"col-3\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_TYPE }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedLinkType\" formControlName=\"linkTypeList\"\r\n (ngModelChange)=\"onLinkTypeChange()\" disableOptionCentering>\r\n <mat-option *ngFor=\"let link of linkTypes\" [value]=\"link.id\">\r\n {{ link.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"col-3\" *ngIf=\"selectedLinkType === 0\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.TARGET }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedTarget\" formControlName=\"targetList\"\r\n (ngModelChange)=\"onTargetChange()\" disableOptionCentering>\r\n <mat-option *ngFor=\"let target of targets\" [value]=\"target.id\">\r\n {{ target.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <div class=\"row\" [ngClass]=\"{'hidden': !showImageMapInformation}\"\r\n *ngIf=\"selectedLinkType === 1\">\r\n <div class=\"col-3\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\r\n <mat-select [(ngModel)]=\"anchorText\" formControlName=\"anchorTextList\"\r\n (ngModelChange)=\"onAnchorTextChange()\">\r\n <mat-option *ngFor=\"let editorAnchor of editorAnchors\"\r\n [value]=\"editorAnchor.anchorValue\" disableOptionCentering>\r\n {{ editorAnchor.viewValue }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <div class=\"row\" [ngClass]=\"{'hidden': !showImageMapInformation}\"\r\n *ngIf=\"selectedLinkType === 0\">\r\n <div class=\"col-3\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.PROTOCOL }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedProtocol\" formControlName=\"protocolList\"\r\n (ngModelChange)=\"onProtocolChange()\" disableOptionCentering>\r\n <mat-option *ngFor=\"let protocol of protocols\" [value]=\"protocol.id\">\r\n {{ protocol.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"col-5\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 pb-1\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_URL }}</mat-label>\r\n <input matInput [(ngModel)]=\"url\" name=\"url\" formControlName=\"url\"\r\n (ngModelChange)=\"onUrlChange()\" (keyup)=\"onUrlKeyup()\" />\r\n <mat-error *ngIf=\"imageMapFormGroup.get('url').hasError('required')\">{{\r\n LANG.QMSCKEDITOR.REQUIRED_URL }}\r\n </mat-error>\r\n <mat-error *ngIf=\"imageMapFormGroup.get('url').hasError('invalidURL')\">{{\r\n LANG.QMSCKEDITOR.INVALID_URL }}</mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"col-4\">\r\n <div class=\"row button__groups\">\r\n <div class=\"col-6\">\r\n <button class=\"save\" mat-stroked-button (click)=\"attachment()\">\r\n {{ LANG.QMSCKEDITOR.ATTACHMENT }}\r\n </button>\r\n </div>\r\n <div class=\"col-6\">\r\n <button class=\"save\" mat-stroked-button (click)=\"eHandbook(false, false)\">\r\n {{ LANG.QMSCKEDITOR.HANDBOOK }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n <div id=\"qmsckeditor-imagemap-panel_001_002\" class=\"qmsckeditor__imagemap__map\">\r\n <img #myImage [src]=\"imageMapData.imageUrl\">\r\n <mat-spinner diameter=\"40\" mode=\"indeterminate\" *ngIf=\"isImageLoading\"></mat-spinner>\r\n </div>\r\n <div id=\"qmsckeditor-imagemap-panel_001_003\" class=\"qmsckeditor button__groups row mr-0 ml-0 mt-4\">\r\n <div class=\"col-4 pr-0\">\r\n <button class=\"save\" mat-flat-button (click)=\"removeMap()\">\r\n {{ LANG.QMSCKEDITOR.REMOVE_MAP }}\r\n </button>\r\n </div>\r\n <div class=\"col-4 pr-0\">\r\n <button class=\"save\" mat-flat-button (click)=\"save()\">\r\n {{ LANG.QMSCKEDITOR.SAVE }}\r\n </button>\r\n </div>\r\n <div class=\"col-4 pl-0\">\r\n <button class=\"cancel\" mat-flat-button (click)=\"cancel()\">\r\n {{ LANG.QMSCKEDITOR.CANCEL }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
16726
|
+
styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}::ng-deep .qmsckeditor__imagemap__container .mat-form-field{width:100%}::ng-deep .qmsckeditor__imagemap__container .qmsckeditor__imagemap__information{position:relative}::ng-deep .qmsckeditor__imagemap__container .qmsckeditor__imagemap__map{overflow:auto;width:800px;min-height:371px;position:relative;max-height:460px;display:flex;align-items:flex-start}::ng-deep .qmsckeditor__imagemap__container .mat-button-toggle-checked{border:1px solid #000!important}::ng-deep .qmsckeditor__imagemap__container .hidden{visibility:hidden}"]
|
16665
16727
|
},] }
|
16666
16728
|
];
|
16667
16729
|
QMSCKEditorImageMapComponent.ctorParameters = function () { return [
|
@@ -16711,7 +16773,7 @@
|
|
16711
16773
|
_this.LANG = _this.translate.getObjectLang(res);
|
16712
16774
|
}
|
16713
16775
|
});
|
16714
|
-
this.editorConfig = CKEditorCommonFunctions.getCKEditorConfiguration('
|
16776
|
+
this.editorConfig = CKEditorCommonFunctions.getCKEditorConfiguration('heading,|,fontsize,fontfamily,fontColor,fontBackgroundColor,|,bold,italic,underline,strikethrough,|,alignment,|,bulletedList,numberedList,|,outdent,indent,|,subscript,superscript,|,undo,redo,|,specialCharacters,blockQuote,insertTable,|,link,anchor,|,timestamp,|,removeformat');
|
16715
16777
|
};
|
16716
16778
|
QMSCKEditorTooltipComponent.prototype.ngAfterViewChecked = function () {
|
16717
16779
|
this.cdr.detectChanges();
|
@@ -16750,7 +16812,7 @@
|
|
16750
16812
|
QMSCKEditorTooltipComponent.decorators = [
|
16751
16813
|
{ type: i0.Component, args: [{
|
16752
16814
|
selector: 'app-qmsck-tooltip',
|
16753
|
-
template: "<div
|
16815
|
+
template: "<div id=\"qmsckeditor-tooltip\" class=\"qmsckeditor qmsckeditor__tooltip__container\">\r\n <div id=\"qmsckeditor-tooltip-header\">\r\n <span id=\"qmsckeditor-tooltip-header_001\" mat-icon-button class=\"qmsckeditor button__close\"\r\n (click)=\"onCloseDialog()\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmsckeditor-tooltip-header_002\" mat-dialog-content>\r\n <h2 id=\"qmsckeditor-tooltip_002_001\">\r\n {{ LANG.QMSCKEDITOR.INSERT_TOOLTIP }}\r\n </h2>\r\n </div>\r\n </div>\r\n <form [formGroup]=\"tooltipFormGroup\">\r\n <div id=\"qmsckeditor-tooltip-content\" class=\"qmsckeditor tooltip-content height\">\r\n <div id=\"qmsckeditor-tooltip-content_001\" class=\"col-12 mt-1 pl-2 pr-2\">\r\n <mat-expansion-panel id=\"qmsckeditor-tooltip-panel\" [expanded]=\"true\" (opened)=\"(true)\" (closed)=\"(false)\">\r\n <div id=\"qmsckeditor-tooltip-panel_001\">\r\n <div id=\"qmsckeditor-tooltip-panel_001_001\">\r\n <mat-form-field class=\"col-12 pl-0 pr-0\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.TITLE }}</mat-label>\r\n <input matInput [(ngModel)]=\"tooltip.text\" formControlName=\"title\" />\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor-tooltip-panel_001_002\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.CONTENT }}</mat-label>\r\n <div class=\"qmsckeditor_container col-12 pl-0 pr-0\">\r\n <ckeditor class=\"qms-ckeditor\" [(editor)]=\"editor\" [config]=\"editorConfig\" (ready)=\"onReady($event)\"\r\n [(ngModel)]=\"tooltip.content\" (change)=\"onChanged($event)\" (blur)=\"onBlur($event)\"\r\n formControlName=\"content\">\r\n </ckeditor>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor-tooltip-panel_001_003\" class=\"qmsckeditor button__groups row mr-0 ml-0 mt-4\">\r\n <div class=\"col-6 pr-0\">\r\n <button class=\"save\" mat-flat-button (click)=\"saveTooltip()\" [disabled]=\"tooltipFormGroup.invalid\">\r\n {{ LANG.QMSCKEDITOR.SAVE }}\r\n </button>\r\n </div>\r\n <div class=\"col-6 pl-0\">\r\n <button class=\"cancel\" mat-flat-button (click)=\"cancelTooltip()\">\r\n {{ LANG.QMSCKEDITOR.CANCEL }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </div>\r\n </form>\r\n</div>",
|
16754
16816
|
styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}.qmsckeditor__tooltip__container .mat-form-field{width:100%}.qmsckeditor__tooltip__container textarea.mat-input-element{min-height:150px}"]
|
16755
16817
|
},] }
|
16756
16818
|
];
|
@@ -16761,16 +16823,54 @@
|
|
16761
16823
|
{ type: QMSCKEditorTooltip, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
16762
16824
|
]; };
|
16763
16825
|
|
16764
|
-
|
16765
|
-
|
16766
|
-
|
16767
|
-
|
16768
|
-
|
16769
|
-
|
16770
|
-
|
16826
|
+
var QMSCKEditorAboutComponent = /** @class */ (function (_super) {
|
16827
|
+
__extends(QMSCKEditorAboutComponent, _super);
|
16828
|
+
function QMSCKEditorAboutComponent(translate, dialogRef, data) {
|
16829
|
+
var _this = _super.call(this) || this;
|
16830
|
+
_this.translate = translate;
|
16831
|
+
_this.dialogRef = dialogRef;
|
16832
|
+
_this.data = data;
|
16833
|
+
_this.currentVersion = data;
|
16834
|
+
return _this;
|
16835
|
+
}
|
16836
|
+
QMSCKEditorAboutComponent.prototype.ngOnInit = function () {
|
16837
|
+
var _this = this;
|
16838
|
+
this.translate.getLanguageSubject$.pipe(operators.takeUntil(this.ngUnsubcribe)).subscribe(function (res) {
|
16839
|
+
if (res) {
|
16840
|
+
_this.LANG = _this.translate.getObjectLang(res);
|
16841
|
+
}
|
16842
|
+
});
|
16843
|
+
this.currentYear = new Date().getFullYear();
|
16844
|
+
};
|
16845
|
+
QMSCKEditorAboutComponent.prototype.onCloseDialog = function () {
|
16846
|
+
this.dialogRef.close();
|
16847
|
+
};
|
16848
|
+
return QMSCKEditorAboutComponent;
|
16849
|
+
}(QMSCKEditorBaseComponent));
|
16850
|
+
QMSCKEditorAboutComponent.decorators = [
|
16851
|
+
{ type: i0.Component, args: [{
|
16852
|
+
selector: 'app-about-ckeditor',
|
16853
|
+
template: "<div id=\"qmsckeditor-about\" class=\"qmsckeditor qmsckeditor__about__container\">\r\n <div id=\"qmsckeditor-about-header\">\r\n <span id=\"qmsckeditor-about-header_001\" mat-icon-button class=\"qmsckeditor button__close\"\r\n (click)=\"onCloseDialog()\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmsckeditor-about-header_002\" mat-dialog-content>\r\n <h2 id=\"qmsckeditor-about_002_001\">\r\n {{ LANG.ABOUT.ABOUT_CKEDITOR }}\r\n </h2>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor-about-content\">\r\n <div class=\"col-12 qmsckeditor__about__logo__container\">\r\n <img class=\"qmsckeditor__about__logo\" src=\"../../../../assets/images/ckeditor5.svg\" alt=\"CKEditor logo\">\r\n </div>\r\n <div class=\"col-12\">\r\n <p>{{LANG.ABOUT.CKEDITOR5_VERSION}} {{currentVersion}}.<br><a target=\"_blank\"\r\n href=\"https://ckeditor.com/\">https://ckeditor.com</a></p>\r\n <p>{{LANG.ABOUT.CHECK}} <a target=\"_blank\"\r\n href=\"https://ckeditor.com/docs/\">{{LANG.ABOUT.CKEDITOR_USERS_GUIDE}}</a> {{LANG.ABOUT.FOR_HELP}}.\r\n </p>\r\n <p>{{LANG.ABOUT.FOR_LICENSING_INFORMATION_PLEASE_VISIT_OUR_WEBSITE}}:<br><a target=\"_blank\"\r\n href=\"https://ckeditor.com/legal/ckeditor-oss-license/\">https://ckeditor.com/legal/ckeditor-oss-license/</a>\r\n </p>\r\n <p>{{LANG.ABOUT.COPYRIGHT}} 2003-{{currentYear}}, <a target=\"_blank\"\r\n href=\"https://cksource.com/\">CKSource</a> - Frederico Knabben.\r\n <br>{{LANG.ABOUT.ALL_RIGHTS_RESERVED}}.\r\n </p>\r\n </div>\r\n <div class=\"col-12\">\r\n <button mat-stroked-button class=\"qmsckeditor__about__button\" (click)=\"onCloseDialog()\">\r\n {{ LANG.QMSCKEDITOR.CLOSE }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>",
|
16854
|
+
styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}.qmsckeditor__about__container .qmsckeditor__about__logo__container{display:flex;justify-content:center;margin-bottom:10px}.qmsckeditor__about__container .qmsckeditor__about__logo{height:64px}.qmsckeditor__about__container .qmsckeditor__about__button{float:right}"]
|
16855
|
+
},] }
|
16856
|
+
];
|
16857
|
+
QMSCKEditorAboutComponent.ctorParameters = function () { return [
|
16858
|
+
{ type: TranslateLibraryService },
|
16859
|
+
{ type: dialog.MatDialogRef },
|
16860
|
+
{ type: String, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
16861
|
+
]; };
|
16862
|
+
|
16863
|
+
var QMSCKEditorComponent = /** @class */ (function (_super) {
|
16864
|
+
__extends(QMSCKEditorComponent, _super);
|
16865
|
+
/**
|
16866
|
+
* Constructor
|
16867
|
+
*/
|
16868
|
+
function QMSCKEditorComponent(dialog, translate, globalService, treeService, qmsCKEditorFullscreenComponent, renderer, elRef) {
|
16771
16869
|
var _this = _super.call(this) || this;
|
16772
16870
|
_this.dialog = dialog;
|
16871
|
+
_this.translate = translate;
|
16773
16872
|
_this.globalService = globalService;
|
16873
|
+
_this.treeService = treeService;
|
16774
16874
|
_this.qmsCKEditorFullscreenComponent = qmsCKEditorFullscreenComponent;
|
16775
16875
|
_this.renderer = renderer;
|
16776
16876
|
_this.elRef = elRef;
|
@@ -16800,16 +16900,28 @@
|
|
16800
16900
|
case this.ckEditorEventConst.QMSCK_BPMN_PLUGIN_MSG:
|
16801
16901
|
this.bpmnEventHandling(event.data.value);
|
16802
16902
|
break;
|
16903
|
+
case this.ckEditorEventConst.QMSCK_ABOUT_CKEDITOR_PLUGIN_MSG:
|
16904
|
+
this.aboutCKEditorEventHandling(event.data.value);
|
16905
|
+
break;
|
16803
16906
|
case this.ckEditorEventConst.QMSCK_TOGGLE_TOOLBAR_MSG:
|
16804
16907
|
this.toggleToolbarEventHandling();
|
16805
16908
|
break;
|
16909
|
+
case this.ckEditorEventConst.QMSCK_BROWSE_VIDEO_MSG:
|
16910
|
+
this.browseVideoEventHandling(event.data.value);
|
16911
|
+
break;
|
16806
16912
|
default:
|
16807
16913
|
break;
|
16808
16914
|
}
|
16809
16915
|
};
|
16810
16916
|
QMSCKEditorComponent.prototype.ngOnInit = function () {
|
16917
|
+
var _this = this;
|
16811
16918
|
this.name = 'CKEditor custom build';
|
16812
16919
|
this.ckEditor = this.qmsckPlugin.pluginObject;
|
16920
|
+
this.translate.getLanguageSubject$.pipe(operators.takeUntil(this.ngUnsubcribe)).subscribe(function (res) {
|
16921
|
+
if (res) {
|
16922
|
+
_this.LANG = _this.translate.getObjectLang(res);
|
16923
|
+
}
|
16924
|
+
});
|
16813
16925
|
this.ckeditorConfig = CKEditorCommonFunctions.getCKEditorConfiguration(this.qmsckPlugin.itemToolbar);
|
16814
16926
|
this.globalService.setApiUrl(this.qmsckData.apiUrl);
|
16815
16927
|
if (this.isEnabledMathtypeConfig()) {
|
@@ -16821,6 +16933,12 @@
|
|
16821
16933
|
if (this.isEnabledToggleToolbar()) {
|
16822
16934
|
this.addToggleToolbarConfig();
|
16823
16935
|
}
|
16936
|
+
if (this.isEnabledWProofreader()) {
|
16937
|
+
this.addWProofreaderConfig();
|
16938
|
+
}
|
16939
|
+
if (this.isEnabledTOCToolbar()) {
|
16940
|
+
this.addToggleTOCConfig();
|
16941
|
+
}
|
16824
16942
|
if (this.isEnabledFullScreenConfig()) {
|
16825
16943
|
this.addFullScreenConfig();
|
16826
16944
|
}
|
@@ -16841,6 +16959,23 @@
|
|
16841
16959
|
this.renderer.addClass(this.elRef.nativeElement, 'ck-disabled');
|
16842
16960
|
}
|
16843
16961
|
};
|
16962
|
+
QMSCKEditorComponent.prototype.isEnabledWProofreader = function () {
|
16963
|
+
var pattern = /(wproofreader)/gmi;
|
16964
|
+
return !!this.qmsckData.wproofreader
|
16965
|
+
&& !!this.qmsckData.wproofreader.srcUrl
|
16966
|
+
&& !!this.qmsckPlugin.itemToolbar
|
16967
|
+
&& this.qmsckPlugin.itemToolbar.search(pattern) > -1;
|
16968
|
+
};
|
16969
|
+
QMSCKEditorComponent.prototype.addWProofreaderConfig = function () {
|
16970
|
+
var wproofreaderConfig = {
|
16971
|
+
wproofreader: Object.assign({}, this.qmsckData.wproofreader)
|
16972
|
+
};
|
16973
|
+
if (!this.qmsckData.wproofreader.serviceId || this.qmsckData.wproofreader.serviceId.length == 0) {
|
16974
|
+
//Fallback value of serviceId property to demo serviceId
|
16975
|
+
this.qmsckData.wproofreader.serviceId = '1:KpkvQ2-6KNUj-L1W3u2-C9j0K1-Zv2tY1-CfDOx-WfGRg2-qXtci-YyyE34-j09H42-b0aCt3-d9a';
|
16976
|
+
}
|
16977
|
+
this.ckEditor.defaultConfig = Object.assign(this.ckEditor.defaultConfig || {}, wproofreaderConfig);
|
16978
|
+
};
|
16844
16979
|
QMSCKEditorComponent.prototype.isEnabledToggleToolbar = function () {
|
16845
16980
|
var pattern = /(toggleToolbar)/gmi;
|
16846
16981
|
return !!this.qmsckData.toggleToolbar
|
@@ -16870,6 +17005,21 @@
|
|
16870
17005
|
};
|
16871
17006
|
this.ckEditor.defaultConfig = Object.assign(this.ckEditor.defaultConfig || {}, fullScreenConfig);
|
16872
17007
|
};
|
17008
|
+
QMSCKEditorComponent.prototype.isEnabledTOCToolbar = function () {
|
17009
|
+
var pattern = /(tableOfContents)/gmi;
|
17010
|
+
return !!this.qmsckData.tableOfContentHeadings
|
17011
|
+
&& !!this.qmsckPlugin.itemToolbar
|
17012
|
+
&& this.qmsckPlugin.itemToolbar.search(pattern) > -1;
|
17013
|
+
};
|
17014
|
+
QMSCKEditorComponent.prototype.addToggleTOCConfig = function () {
|
17015
|
+
var items = this.qmsckData.tableOfContentHeadings.split(',');
|
17016
|
+
var tableOfContents = {
|
17017
|
+
tableOfContents: {
|
17018
|
+
supportedHeadings: items
|
17019
|
+
}
|
17020
|
+
};
|
17021
|
+
this.ckEditor.defaultConfig = Object.assign(this.ckEditor.defaultConfig || {}, tableOfContents);
|
17022
|
+
};
|
16873
17023
|
QMSCKEditorComponent.prototype.isEnabledTimestampConfig = function () {
|
16874
17024
|
var pattern = /(timestamp)/gmi;
|
16875
17025
|
return !!this.qmsckData.timestampFormat
|
@@ -16933,17 +17083,21 @@
|
|
16933
17083
|
this.initEditor(editor);
|
16934
17084
|
};
|
16935
17085
|
QMSCKEditorComponent.prototype.initEditor = function (editor) {
|
17086
|
+
var _this = this;
|
17087
|
+
var imageUploadTypes = editor.config.get('image.upload.types');
|
17088
|
+
var maxFileSizeMB = this.qmsckData.maxFileSizeMB;
|
17089
|
+
var config = { apiUrl: this.qmsckData.apiUrl, LANG: this.LANG, imageUploadTypes: imageUploadTypes, maxFileSizeMB: maxFileSizeMB };
|
17090
|
+
editor.plugins.get("FileRepository").createUploadAdapter = function (loader) {
|
17091
|
+
return new QmsUploadAdapter(loader, config);
|
17092
|
+
};
|
16936
17093
|
editor.ui
|
16937
17094
|
.getEditableElement()
|
16938
17095
|
.parentElement.insertBefore(editor.ui.view.toolbar.element, editor.ui.getEditableElement());
|
16939
|
-
editor.plugins.get('FileRepository').createUploadAdapter = function (loader) {
|
16940
|
-
return new UploadAdapter(loader);
|
16941
|
-
};
|
16942
17096
|
// Apped Wordcount to CKeditor
|
16943
17097
|
editor.plugins.get('WordCount').on('update', function (evt, stats) {
|
16944
17098
|
// Prints the current content statistics.
|
16945
17099
|
var wordsBox = document.querySelector('.wordcount-content');
|
16946
|
-
wordsBox.textContent = "
|
17100
|
+
wordsBox.textContent = _this.LANG.QMSCKEDITOR.WORDS + ": " + stats.words + " / " + _this.LANG.QMSCKEDITOR.CHARACTERS + ": " + stats.characters;
|
16947
17101
|
});
|
16948
17102
|
};
|
16949
17103
|
/**
|
@@ -17031,7 +17185,7 @@
|
|
17031
17185
|
data.ckEditor = this.qmsckPlugin.pluginObject;
|
17032
17186
|
var dialogTemplate = this.dialog.open(QMSCKEditorTooltipComponent, {
|
17033
17187
|
width: '650px',
|
17034
|
-
height: '
|
17188
|
+
height: '555px',
|
17035
17189
|
data: data,
|
17036
17190
|
disableClose: true
|
17037
17191
|
});
|
@@ -17108,6 +17262,21 @@
|
|
17108
17262
|
}
|
17109
17263
|
});
|
17110
17264
|
};
|
17265
|
+
/*
|
17266
|
+
About CKEditor
|
17267
|
+
*/
|
17268
|
+
QMSCKEditorComponent.prototype.aboutCKEditorEventHandling = function (version) {
|
17269
|
+
var dialogTemplate = this.dialog.open(QMSCKEditorAboutComponent, {
|
17270
|
+
width: '500px',
|
17271
|
+
data: version,
|
17272
|
+
disableClose: true
|
17273
|
+
});
|
17274
|
+
dialogTemplate
|
17275
|
+
.afterClosed()
|
17276
|
+
.pipe(operators.takeUntil(this.ngUnsubcribe))
|
17277
|
+
.subscribe(function (result) {
|
17278
|
+
});
|
17279
|
+
};
|
17111
17280
|
/*
|
17112
17281
|
Toolbar toggle
|
17113
17282
|
*/
|
@@ -17167,12 +17336,86 @@
|
|
17167
17336
|
}
|
17168
17337
|
}
|
17169
17338
|
};
|
17339
|
+
/**
|
17340
|
+
* Browse Video
|
17341
|
+
*/
|
17342
|
+
QMSCKEditorComponent.prototype.browseVideoEventHandling = function (value) {
|
17343
|
+
var _this = this;
|
17344
|
+
this.treeService
|
17345
|
+
.getUploadVideoList()
|
17346
|
+
.pipe(operators.takeUntil(this.ngUnsubcribe))
|
17347
|
+
.subscribe(function (response) {
|
17348
|
+
var videos = response || [];
|
17349
|
+
var config = {
|
17350
|
+
allowSelectFolder: false,
|
17351
|
+
areaOfCurrentProcess: '',
|
17352
|
+
showCheckBox: true,
|
17353
|
+
allowMultipleCheck: value.allowMultipleFiles,
|
17354
|
+
onlyCheckBoxForChild: true,
|
17355
|
+
moduleId: DataType$1.document,
|
17356
|
+
openIcon: 'folder_open',
|
17357
|
+
openIconColor: '#1954A9',
|
17358
|
+
closeIcon: 'folder_filled',
|
17359
|
+
closeIconColor: '#4acaff',
|
17360
|
+
itemIcon: 'insert_drive_file',
|
17361
|
+
itemIconPath: '',
|
17362
|
+
itemIconBase64: '',
|
17363
|
+
singleSelectedNode: true,
|
17364
|
+
expandAll: true
|
17365
|
+
};
|
17366
|
+
var data = new PopupData();
|
17367
|
+
data.moduleId = 2;
|
17368
|
+
data.moduleName = _this.LANG.QMSCKEDITOR.SELECT_VIDEO_FROM_ARCHIVE;
|
17369
|
+
data.treeData1 = videos.map(function (item) {
|
17370
|
+
return {
|
17371
|
+
rootId: item.rootId,
|
17372
|
+
parentId: item.parentId,
|
17373
|
+
rootName: item.rootName,
|
17374
|
+
subName: item.subName,
|
17375
|
+
childId: item.childId,
|
17376
|
+
childName: item.childName,
|
17377
|
+
statusId: item.statusId,
|
17378
|
+
displayId: item.displayId,
|
17379
|
+
contentType: item.contentType,
|
17380
|
+
url: item.url
|
17381
|
+
};
|
17382
|
+
});
|
17383
|
+
data.treeData2 = [];
|
17384
|
+
data.treeConfig1 = config;
|
17385
|
+
var dialogRef = _this.dialog.open(RelatedPopupComponent, {
|
17386
|
+
minWidth: '450px',
|
17387
|
+
maxWidth: '800px',
|
17388
|
+
minHeight: '620px',
|
17389
|
+
data: data,
|
17390
|
+
panelClass: 'qmsckeditor-browse-video-popup'
|
17391
|
+
});
|
17392
|
+
setTimeout(function () {
|
17393
|
+
var searchBox = window.document.querySelector('.qmsckeditor-browse-video-popup #qmslib_related_popup_search');
|
17394
|
+
if (searchBox) {
|
17395
|
+
searchBox.style.display = 'none';
|
17396
|
+
}
|
17397
|
+
}, 100);
|
17398
|
+
dialogRef
|
17399
|
+
.afterClosed()
|
17400
|
+
.subscribe(function (result) {
|
17401
|
+
if (result) {
|
17402
|
+
var ids_1 = result.reduce(function (result, item) {
|
17403
|
+
result[item.id.toString()] = item.id;
|
17404
|
+
return result;
|
17405
|
+
}, {});
|
17406
|
+
var urls = videos.filter(function (i) { return i.childId && !!ids_1[i.childId.toString()]; }).map(function (i) { return i.url; });
|
17407
|
+
var evt = new CustomEvent(_this.ckEditorEventConst.QMSCK_BROWSE_VIDEO_RESP, { detail: { urls: urls } });
|
17408
|
+
window.dispatchEvent(evt);
|
17409
|
+
}
|
17410
|
+
});
|
17411
|
+
});
|
17412
|
+
};
|
17170
17413
|
return QMSCKEditorComponent;
|
17171
17414
|
}(QMSCKEditorBaseComponent));
|
17172
17415
|
QMSCKEditorComponent.decorators = [
|
17173
17416
|
{ type: i0.Component, args: [{
|
17174
17417
|
selector: 'qms-ckeditor',
|
17175
|
-
template: "<div id=\"qmsckeditor\" class=\"qmsckeditor_container\">\r\n <ckeditor class=\"qms-ckeditor\" [tagName]=\"ckTagname\" [(editor)]=\"ckEditor\" [config]=\"ckeditorConfig\"\r\n (ready)=\"onReady($event)\" [(ngModel)]=\"qmsckContentInput\" (change)=\"onChanged($event)\" (blur)=\"onBlur($event)\"\r\n [disabled]=\"isDisabled\">\r\n </ckeditor>\r\n <div class=\"sub-container\">\r\n <div class=\"\">\r\n <span>
|
17418
|
+
template: "<div id=\"qmsckeditor\" class=\"qmsckeditor_container\">\r\n <ckeditor class=\"qms-ckeditor\" [tagName]=\"ckTagname\" [(editor)]=\"ckEditor\" [config]=\"ckeditorConfig\"\r\n (ready)=\"onReady($event)\" [(ngModel)]=\"qmsckContentInput\" (change)=\"onChanged($event)\" (blur)=\"onBlur($event)\"\r\n [disabled]=\"isDisabled\">\r\n </ckeditor>\r\n <div class=\"sub-container\">\r\n <div class=\"\">\r\n <span>{{LANG.QMSCKEDITOR.ASSISTIVE_TEXT}}</span>\r\n </div>\r\n <div class=\"wordcount-content\"></div>\r\n </div>\r\n</div>\r\n",
|
17176
17419
|
providers: [
|
17177
17420
|
QMSCKEditorFullscreenComponent,
|
17178
17421
|
{
|
@@ -17188,12 +17431,14 @@
|
|
17188
17431
|
],
|
17189
17432
|
encapsulation: i0.ViewEncapsulation.None,
|
17190
17433
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
17191
|
-
styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWJ0bbck.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFUZ0bbck.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWZ0bbck.woff2) format(\"woff2\");unicode-range:U+1f??}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVp0bbck.woff2) format(\"woff2\");unicode-range:U+0370-03ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWp0bbck.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFW50bbck.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVZ0b.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCFPrEHJA.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCMPrEHJA.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCHPrEHJA.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCGPrEHJA.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrE.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.qmsckeditor_container .qmsckeditor__minwidth{width:100%}.qmsckeditor_container .ck-editor__editable{overflow-y:auto}.qms-ckeditor .ck.ck-editor__editable{max-height:172px;min-height:172px;background-color:rgba(0,0,0,.04);font-family:Open Sans}.qms-ckeditor .ck.ck-editor__editable:not(.ck-focused,.ck-read-only):hover{background-color:rgba(0,0,0,.08);border-bottom:2px solid rgba(0,0,0,.38)}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar{width:12px}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-track{background:transparent;background-clip:content-box}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms-ckeditor .ck-placeholder{font-size:1rem;font-weight:600;color:rgba(0,0,0,.6)}.qms-ckeditor .ck-disabled .ck.ck-editor__main>.ck-editor__editable,.qms-ckeditor .ck-disabled .ck.ck-toolbar{background-color:#e4e4e4;pointer-events:none}.qms-ckeditor .ck-disabled .ck-button{pointer-events:none}.qms-ckeditor .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused):focus{border-radius:4px}.qms-ckeditor .ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{border:1px solid #c4c4c4;border-bottom:2px solid #1954a9;border-radius:4px;box-shadow:none;background-color:rgba(0,0,0,.08)}.qms-ckeditor .ck.ck-toolbar{box-shadow:0 1px 3px rgba(51,51,51,.2)}.qms-ckeditor .ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:none;border-width:0}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;bottom:0;right:0;overflow:auto;background:#fff}.qmsckeditor__fullscreen .qms-ckeditor{height:98%;display:
|
17434
|
+
styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWJ0bbck.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFUZ0bbck.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWZ0bbck.woff2) format(\"woff2\");unicode-range:U+1f??}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVp0bbck.woff2) format(\"woff2\");unicode-range:U+0370-03ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWp0bbck.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFW50bbck.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVZ0b.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCFPrEHJA.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCMPrEHJA.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCHPrEHJA.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCGPrEHJA.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrE.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.qmsckeditor_container .qmsckeditor__minwidth{width:100%}.qmsckeditor_container .ck-editor__editable{overflow-y:auto}.qms-ckeditor .ck.ck-editor__editable{max-height:172px;min-height:172px;background-color:rgba(0,0,0,.04);font-family:Open Sans}.qms-ckeditor .ck.ck-editor__editable:not(.ck-focused,.ck-read-only):hover{background-color:rgba(0,0,0,.08);border-bottom:2px solid rgba(0,0,0,.38)}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar{width:12px}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-track{background:transparent;background-clip:content-box}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms-ckeditor .ck-placeholder{font-size:1rem;font-weight:600;color:rgba(0,0,0,.6)}.qms-ckeditor .ck-disabled .ck.ck-editor__main>.ck-editor__editable,.qms-ckeditor .ck-disabled .ck.ck-toolbar{background-color:#e4e4e4;pointer-events:none}.qms-ckeditor .ck-disabled .ck-button{pointer-events:none}.qms-ckeditor .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused):focus{border-radius:4px}.qms-ckeditor .ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{border:1px solid #c4c4c4;border-bottom:2px solid #1954a9;border-radius:4px;box-shadow:none;background-color:rgba(0,0,0,.08)}.qms-ckeditor .ck.ck-toolbar{box-shadow:0 1px 3px rgba(51,51,51,.2)}.qms-ckeditor .ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:none;border-width:0}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;bottom:0;right:0;overflow:auto;background:#fff}.qmsckeditor__fullscreen .qms-ckeditor{height:98%;display:block;width:100%}.qmsckeditor__fullscreen .ck.ck-editor__main{height:98%}.qmsckeditor__fullscreen .ck.ck-editor__editable{height:inherit}.sub-container{display:flex;justify-content:space-between;padding:0 10px;font-family:Open Sans;font-size:.75rem;font-weight:400;line-height:16px;color:rgba(0,0,0,.6)}"]
|
17192
17435
|
},] }
|
17193
17436
|
];
|
17194
17437
|
QMSCKEditorComponent.ctorParameters = function () { return [
|
17195
17438
|
{ type: dialog.MatDialog },
|
17439
|
+
{ type: TranslateLibraryService },
|
17196
17440
|
{ type: QMSCKEditorGlobalService },
|
17441
|
+
{ type: QMSCKEditorTreeService },
|
17197
17442
|
{ type: QMSCKEditorFullscreenComponent },
|
17198
17443
|
{ type: i0.Renderer2 },
|
17199
17444
|
{ type: i0.ElementRef }
|
@@ -17230,7 +17475,8 @@
|
|
17230
17475
|
QMSCKEditorTooltipComponent,
|
17231
17476
|
QMSCKEditorImageMapComponent,
|
17232
17477
|
QMSCKEditorBpmnComponent,
|
17233
|
-
SaveTemplateComponent
|
17478
|
+
SaveTemplateComponent,
|
17479
|
+
QMSCKEditorAboutComponent
|
17234
17480
|
],
|
17235
17481
|
imports: [
|
17236
17482
|
ckeditor5Angular.CKEditorModule,
|
@@ -17256,8 +17502,9 @@
|
|
17256
17502
|
autocomplete.MatAutocompleteModule,
|
17257
17503
|
scrolling.ScrollingModule,
|
17258
17504
|
i1.HttpClientModule,
|
17259
|
-
SharedModule,
|
17260
17505
|
tabs.MatTabsModule,
|
17506
|
+
progressBar.MatProgressBarModule,
|
17507
|
+
SharedModule
|
17261
17508
|
],
|
17262
17509
|
providers: [],
|
17263
17510
|
exports: [QMSCKEditorComponent],
|
@@ -17451,6 +17698,111 @@
|
|
17451
17698
|
return QMSDialogConfig;
|
17452
17699
|
}(dialog.MatDialogConfig));
|
17453
17700
|
|
17701
|
+
var QMSDrawerContentDirective = /** @class */ (function () {
|
17702
|
+
function QMSDrawerContentDirective(ele) {
|
17703
|
+
this.ele = ele;
|
17704
|
+
}
|
17705
|
+
QMSDrawerContentDirective.prototype.ngOnInit = function () {
|
17706
|
+
if (this.ele) {
|
17707
|
+
this.ele.nativeElement.classList.add('qms-drawer-content');
|
17708
|
+
}
|
17709
|
+
};
|
17710
|
+
return QMSDrawerContentDirective;
|
17711
|
+
}());
|
17712
|
+
QMSDrawerContentDirective.decorators = [
|
17713
|
+
{ type: i0.Directive, args: [{
|
17714
|
+
selector: '[qms-drawer-content]',
|
17715
|
+
},] }
|
17716
|
+
];
|
17717
|
+
QMSDrawerContentDirective.ctorParameters = function () { return [
|
17718
|
+
{ type: i0.ElementRef }
|
17719
|
+
]; };
|
17720
|
+
|
17721
|
+
var QMSDrawerHeaderActionDirective = /** @class */ (function () {
|
17722
|
+
function QMSDrawerHeaderActionDirective(ele) {
|
17723
|
+
this.ele = ele;
|
17724
|
+
}
|
17725
|
+
QMSDrawerHeaderActionDirective.prototype.ngOnInit = function () {
|
17726
|
+
if (this.ele) {
|
17727
|
+
this.ele.nativeElement.classList.add('qms-drawer-header__action');
|
17728
|
+
}
|
17729
|
+
};
|
17730
|
+
return QMSDrawerHeaderActionDirective;
|
17731
|
+
}());
|
17732
|
+
QMSDrawerHeaderActionDirective.decorators = [
|
17733
|
+
{ type: i0.Directive, args: [{
|
17734
|
+
selector: '[qms-drawer-header-action]',
|
17735
|
+
},] }
|
17736
|
+
];
|
17737
|
+
QMSDrawerHeaderActionDirective.ctorParameters = function () { return [
|
17738
|
+
{ type: i0.ElementRef }
|
17739
|
+
]; };
|
17740
|
+
|
17741
|
+
var QMSDrawerHeaderDirective = /** @class */ (function () {
|
17742
|
+
function QMSDrawerHeaderDirective(ele) {
|
17743
|
+
this.ele = ele;
|
17744
|
+
}
|
17745
|
+
QMSDrawerHeaderDirective.prototype.ngOnInit = function () {
|
17746
|
+
if (this.ele) {
|
17747
|
+
this.ele.nativeElement.classList.add('qms-drawer-header');
|
17748
|
+
}
|
17749
|
+
};
|
17750
|
+
return QMSDrawerHeaderDirective;
|
17751
|
+
}());
|
17752
|
+
QMSDrawerHeaderDirective.decorators = [
|
17753
|
+
{ type: i0.Directive, args: [{
|
17754
|
+
selector: '[qms-drawer-header]',
|
17755
|
+
},] }
|
17756
|
+
];
|
17757
|
+
QMSDrawerHeaderDirective.ctorParameters = function () { return [
|
17758
|
+
{ type: i0.ElementRef }
|
17759
|
+
]; };
|
17760
|
+
|
17761
|
+
var QMSDrawerDirective = /** @class */ (function () {
|
17762
|
+
function QMSDrawerDirective(ele) {
|
17763
|
+
this.ele = ele;
|
17764
|
+
}
|
17765
|
+
QMSDrawerDirective.prototype.ngOnInit = function () {
|
17766
|
+
if (this.ele) {
|
17767
|
+
this.ele.nativeElement.classList.add('qms-drawer');
|
17768
|
+
}
|
17769
|
+
};
|
17770
|
+
return QMSDrawerDirective;
|
17771
|
+
}());
|
17772
|
+
QMSDrawerDirective.decorators = [
|
17773
|
+
{ type: i0.Directive, args: [{
|
17774
|
+
selector: '[qms-drawer]',
|
17775
|
+
},] }
|
17776
|
+
];
|
17777
|
+
QMSDrawerDirective.ctorParameters = function () { return [
|
17778
|
+
{ type: i0.ElementRef }
|
17779
|
+
]; };
|
17780
|
+
|
17781
|
+
var QMSSideSheetModule = /** @class */ (function () {
|
17782
|
+
function QMSSideSheetModule() {
|
17783
|
+
}
|
17784
|
+
return QMSSideSheetModule;
|
17785
|
+
}());
|
17786
|
+
QMSSideSheetModule.decorators = [
|
17787
|
+
{ type: i0.NgModule, args: [{
|
17788
|
+
declarations: [
|
17789
|
+
QMSDrawerDirective,
|
17790
|
+
QMSDrawerHeaderDirective,
|
17791
|
+
QMSDrawerContentDirective,
|
17792
|
+
QMSDrawerHeaderActionDirective,
|
17793
|
+
],
|
17794
|
+
imports: [
|
17795
|
+
common.CommonModule
|
17796
|
+
],
|
17797
|
+
exports: [
|
17798
|
+
QMSDrawerDirective,
|
17799
|
+
QMSDrawerHeaderDirective,
|
17800
|
+
QMSDrawerContentDirective,
|
17801
|
+
QMSDrawerHeaderActionDirective,
|
17802
|
+
]
|
17803
|
+
},] }
|
17804
|
+
];
|
17805
|
+
|
17454
17806
|
var QMSTooltipModule = /** @class */ (function () {
|
17455
17807
|
function QMSTooltipModule() {
|
17456
17808
|
}
|
@@ -17954,7 +18306,7 @@
|
|
17954
18306
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
17955
18307
|
selector: 'app-qms-stepper',
|
17956
18308
|
template: "<div class=\"qms-stepper-container\">\r\n <div *ngIf=\"isHorizontal\">\r\n <mat-horizontal-stepper [style.width.px]=\"width\" labelPosition=\"{{labelPosition}}\" #stepper\r\n (selectionChange)=\"changeStep($event.selectedIndex)\" class=\"overflow-auto\" [selectedIndex]=\"currentStep\">\r\n <mat-step *ngFor=\"let step of steps; let i = index;\" [completed]=\"false\"\r\n [aria-labelledby]=\"step.disabled ? 'disabled' : 'step-item'\">\r\n <ng-template matStepLabel>\r\n <span tabindex=\"0\" (keydown.enter)=\"changeStep(i)\" class=\"title-step\">{{step.name}}</span>\r\n </ng-template>\r\n <ng-template matStepContent>\r\n </ng-template>\r\n </mat-step>\r\n <ng-template matStepperIcon=\"edit\">\r\n {{stepper.selectedIndex + 1}}\r\n </ng-template>\r\n </mat-horizontal-stepper>\r\n </div>\r\n <div *ngIf=\"!isHorizontal\">\r\n <mat-vertical-stepper [style.height.px]=\"height\" #stepper (selectionChange)=\"changeStep($event.selectedIndex)\"\r\n [selectedIndex]=\"currentStep\" class=\"overflow-auto\">\r\n <mat-step *ngFor=\"let step of steps; let i = index;\" [completed]=\"false\"\r\n [aria-labelledby]=\"step.disabled ? 'disabled' : 'step-item'\">\r\n <ng-template matStepLabel>\r\n <span tabindex=\"0\" (keydown.enter)=\"changeStep(i)\" class=\"title-step\">{{step.name}}</span>\r\n </ng-template>\r\n <ng-template matStepContent>\r\n </ng-template>\r\n </mat-step>\r\n <ng-template matStepperIcon=\"edit\">\r\n <span>{{stepper.selectedIndex + 1}}</span>\r\n </ng-template>\r\n </mat-vertical-stepper>\r\n </div>\r\n</div>",
|
17957
|
-
styles: [".qms-stepper-container ::ng-deep .mat-step-header[aria-labelledby=step-item]{height:22px!important;padding:8px 12px;left:0;top:0;border-radius:4px;color:#fff}.qms-stepper-container ::ng-deep .mat-step-header[aria-labelledby=step-item].mat-horizontal-stepper-header{width:
|
18309
|
+
styles: [".qms-stepper-container ::ng-deep .mat-step-header[aria-labelledby=step-item]{height:22px!important;padding:8px 12px;left:0;top:0;border-radius:4px;color:#fff}.qms-stepper-container ::ng-deep .mat-step-header[aria-labelledby=step-item].mat-horizontal-stepper-header{min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.qms-stepper-container ::ng-deep .mat-step-header[aria-labelledby=step-item].mat-vertical-stepper-header{width:156px}.qms-stepper-container ::ng-deep .mat-step-header .mat-step-icon{background:rgba(0,0,0,.6);margin-right:14px}.qms-stepper-container ::ng-deep .mat-step-header .mat-step-icon-selected{background-color:#1954a9!important;color:#fff}.qms-stepper-container ::ng-deep .mat-step-header[aria-selected=true] .title-step{font-weight:600!important;outline:none!important;-webkit-font-smoothing:antialiased!important}.qms-stepper-container ::ng-deep mat-step-header:active{background:#e5eefb}.qms-stepper-container ::ng-deep mat-step-header:active mat-step-label{color:#fff}.qms-stepper-container ::ng-deep mat-step-header:active mat-step-icon{color:#323232;background:rgba(0,0,0,.6)}.qms-stepper-container ::ng-deep mat-step-header .mat-ripple-element{background-color:rgba(229,238,251,.3)}.qms-stepper-container ::ng-deep mat-step-header:hover{background:#f2f7fd}.qms-stepper-container ::ng-deep mat-step-header:hover mat-step-label{color:#fff}.qms-stepper-container ::ng-deep mat-step-header:hover mat-step-icon{color:#323232;background:rgba(0,0,0,.6)}.qms-stepper-container ::ng-deep .mat-step-header[aria-labelledby=disabled]{pointer-events:none!important;cursor:not-allowed;opacity:.6;height:22px!important;width:156px;left:0;top:0;border-radius:4px;padding:8px 12px}.qms-stepper-container ::ng-deep mat-step-header:focus{border:2px solid #1954a9}.qms-stepper-container ::ng-deep mat-step-header:focus mat-step-label{color:#fff}.qms-stepper-container ::ng-deep mat-step-header:focus mat-step-icon{color:#323232;background:rgba(0,0,0,.6)}.qms-stepper-container ::ng-deep mat-step-header.mat-step-header.cdk-keyboard-focused,.qms-stepper-container ::ng-deep mat-step-header.mat-step-header.cdk-program-focused{border:3px solid #1954a9;background:#fff}.qms-stepper-container ::ng-deep mat-step-header:focus:not(:focus-visible){border:none}.qms-stepper-container ::ng-deep .mat-step-header[aria-labelledby=active]{pointer-events:none!important;cursor:not-allowed;opacity:.6}.qms-stepper-container .title-step{font-family:Open Sans;font-size:14px;font-style:normal;font-weight:400;letter-spacing:0;text-align:center;color:#323232;outline:none!important}.qms-stepper-container ::ng-deep .mat-step-icon{width:24px;height:24px}.qms-stepper-container ::ng-deep .mat-step-icon .mat-step-icon-content{font-family:Open Sans;font-size:14px;font-style:normal;font-weight:400;letter-spacing:0;text-align:center;color:#fff;padding-top:1px}.qms-stepper-container ::ng-deep .mat-stepper-vertical-line:before{border-left-width:0;border-right-width:0}.qms-stepper-container ::ng-deep .mat-stepper-vertical-line{margin-left:23px;background:#0000001f;height:30px;width:1px}.qms-stepper-container ::ng-deep .mat-stepper-horizontal-line{height:1px;width:22px!important;left:0;top:18px;border-radius:0;margin:8px;background:#0000001f;max-width:22px!important}"]
|
17958
18310
|
},] }
|
17959
18311
|
];
|
17960
18312
|
QmsStepperComponent.ctorParameters = function () { return [
|
@@ -18217,10 +18569,10 @@
|
|
18217
18569
|
appIconService.registerRiskIcon(iconRegistry, domSanitizer);
|
18218
18570
|
}
|
18219
18571
|
SelectIncludeChildrenPopUpComponent.prototype.ngAfterViewInit = function () {
|
18572
|
+
this.initTree(this.checkedNodeList);
|
18220
18573
|
if (this.editItem) {
|
18221
18574
|
this.focusEditItem(this.editItem);
|
18222
18575
|
}
|
18223
|
-
this.initTree(this.checkedNodeList);
|
18224
18576
|
};
|
18225
18577
|
SelectIncludeChildrenPopUpComponent.prototype.ngOnDestroy = function () {
|
18226
18578
|
this.ngUnsubscribe.next();
|
@@ -18268,16 +18620,61 @@
|
|
18268
18620
|
_this.selectedOptions.push(element);
|
18269
18621
|
if (element.type === exports.SelectOptionTypes.IncludeChildren) {
|
18270
18622
|
_this.selectedOptions = _this.selectedOptions.concat(element.children);
|
18623
|
+
if (!_this.includeChildren) {
|
18624
|
+
_this.disabledList = __spreadArray(__spreadArray([], __read(_this.disabledList)), [element]);
|
18625
|
+
_this.disabledList = __spreadArray(__spreadArray([], __read(_this.disabledList)), __read(element.children.map(function (x) {
|
18626
|
+
return {
|
18627
|
+
id: x.id,
|
18628
|
+
itemName: x.itemName,
|
18629
|
+
children: [],
|
18630
|
+
parentId: x.parentId,
|
18631
|
+
type: x.type,
|
18632
|
+
noSelectedChildren: 0,
|
18633
|
+
noChildren: 0
|
18634
|
+
};
|
18635
|
+
})));
|
18636
|
+
}
|
18637
|
+
}
|
18638
|
+
else {
|
18639
|
+
if (_this.includeChildren) {
|
18640
|
+
_this.disabledList = __spreadArray(__spreadArray([], __read(_this.disabledList)), [element]);
|
18641
|
+
}
|
18271
18642
|
}
|
18272
18643
|
_this.selectedData = _this.mapSelectOptionToTreeNode(_this.selectedOptions);
|
18273
18644
|
});
|
18274
18645
|
}
|
18275
18646
|
};
|
18276
18647
|
SelectIncludeChildrenPopUpComponent.prototype.focusEditItem = function (selectedOption) {
|
18277
|
-
var
|
18648
|
+
var _this = this;
|
18649
|
+
var parent;
|
18650
|
+
var parentList = [];
|
18651
|
+
parent = this.treeData.find(function (x) { return x.rootId === selectedOption.parentId; });
|
18652
|
+
if (parent) {
|
18653
|
+
parentList.push({
|
18654
|
+
id: parent.rootId,
|
18655
|
+
itemName: parent.rootName,
|
18656
|
+
parentId: parent.parentId,
|
18657
|
+
type: exports.SelectOptionTypes.IncludeChildren
|
18658
|
+
});
|
18659
|
+
parentList = this.getParentLineOfNode(parentList, parent);
|
18660
|
+
}
|
18661
|
+
var node;
|
18662
|
+
if (parentList.length > 0) {
|
18663
|
+
parentList.forEach(function (parent) {
|
18664
|
+
node = _this.dataTrees.toArray()[0].getNodeByIdAndParentId(parent.id, parent.parentId);
|
18665
|
+
if (node) {
|
18666
|
+
_this.dataTrees.toArray()[0].expandNode(node);
|
18667
|
+
var element = document.getElementById("_" + (node.parentId ? node.parentId.toLowerCase() : '') + "_" + node.id.toLowerCase() + "_" + node.level);
|
18668
|
+
if (element) {
|
18669
|
+
element.scrollIntoView(false);
|
18670
|
+
}
|
18671
|
+
}
|
18672
|
+
});
|
18673
|
+
}
|
18674
|
+
node = this.dataTrees.toArray()[0].getNodeByIdAndParentId(selectedOption.id, selectedOption.parentId);
|
18278
18675
|
if (node) {
|
18279
18676
|
this.dataTrees.toArray()[0].expandNode(node);
|
18280
|
-
var element = document.getElementById("_" + (node.parentId ? node.parentId : '') + "_" + node.id + "_" + node.level);
|
18677
|
+
var element = document.getElementById("_" + (node.parentId ? node.parentId.toLowerCase() : '') + "_" + node.id.toLowerCase() + "_" + node.level);
|
18281
18678
|
if (element) {
|
18282
18679
|
element.scrollIntoView(false);
|
18283
18680
|
}
|
@@ -18288,7 +18685,7 @@
|
|
18288
18685
|
if (index >= 0) {
|
18289
18686
|
if (this.checkedNodeList[index].type === exports.SelectOptionTypes.IncludeChildren) {
|
18290
18687
|
this.removeIncludeChildren(item);
|
18291
|
-
this.
|
18688
|
+
this.deleteNodeFromSelectedNode(item);
|
18292
18689
|
}
|
18293
18690
|
else {
|
18294
18691
|
var position = this.selectedOptions.findIndex(function (x) { return x.id === item.id && x.parentId === item.parentId; });
|
@@ -18296,8 +18693,9 @@
|
|
18296
18693
|
this.selectedOptions.splice(position, 1);
|
18297
18694
|
}
|
18298
18695
|
}
|
18696
|
+
this.focusEditItem(this.checkedNodeList[index]);
|
18697
|
+
this.enableSelectedNode(this.checkedNodeList[index]);
|
18299
18698
|
this.checkedNodeList.splice(index, 1);
|
18300
|
-
this.enableSelectedNode({ id: item.id, parentId: item.parentId, itemName: item.name, type: exports.SelectOptionTypes.IncludeChildren });
|
18301
18699
|
this.selectedData = this.mapSelectOptionToTreeNode(this.selectedOptions);
|
18302
18700
|
}
|
18303
18701
|
};
|
@@ -18329,7 +18727,7 @@
|
|
18329
18727
|
this.checkedNodeList.push({
|
18330
18728
|
id: item.id,
|
18331
18729
|
itemName: item.itemName,
|
18332
|
-
type:
|
18730
|
+
type: item.type,
|
18333
18731
|
parentId: item.parentId,
|
18334
18732
|
children: [],
|
18335
18733
|
noChildren: 0,
|
@@ -18338,6 +18736,15 @@
|
|
18338
18736
|
}
|
18339
18737
|
}
|
18340
18738
|
this.selectedData = this.mapSelectOptionToTreeNode(this.selectedOptions);
|
18739
|
+
this.focusEditItem({
|
18740
|
+
id: item.id,
|
18741
|
+
itemName: item.itemName,
|
18742
|
+
type: item.type,
|
18743
|
+
parentId: item.parentId,
|
18744
|
+
children: [],
|
18745
|
+
noChildren: 0,
|
18746
|
+
noSelectedChildren: 0
|
18747
|
+
});
|
18341
18748
|
};
|
18342
18749
|
SelectIncludeChildrenPopUpComponent.prototype.getItemIconType = function (item) {
|
18343
18750
|
if (item.itemIcon && item.itemIcon.length)
|
@@ -18410,12 +18817,29 @@
|
|
18410
18817
|
};
|
18411
18818
|
SelectIncludeChildrenPopUpComponent.prototype.removeIncludeChildren = function (item) {
|
18412
18819
|
var _this = this;
|
18820
|
+
var index = this.checkedNodeList.findIndex(function (x) { return x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === x.parentId.toLowerCase() && x.type === exports.SelectOptionTypes.IncludeChildren; });
|
18821
|
+
if (index >= 0) {
|
18822
|
+
var listChildren_1 = this.checkedNodeList[index].children;
|
18823
|
+
var itemIndex_1 = this.selectedOptions.findIndex(function (node) { return node.id.toLowerCase() === item.id.toLowerCase() && node.parentId.toLowerCase() === item.parentId.toLowerCase(); });
|
18824
|
+
if (itemIndex_1 >= 0) {
|
18825
|
+
this.enableSelectedNode(this.checkedNodeList[index]);
|
18826
|
+
this.selectedOptions.splice(itemIndex_1, 1);
|
18827
|
+
}
|
18828
|
+
listChildren_1.forEach(function (x) {
|
18829
|
+
var index = _this.selectedOptions.findIndex(function (node) { return node.id.toLowerCase() === x.id.toLowerCase() && node.parentId.toLowerCase() === x.parentId.toLowerCase(); });
|
18830
|
+
if (index >= 0) {
|
18831
|
+
_this.selectedOptions.splice(index, 1);
|
18832
|
+
_this.disabledList = _this.disabledList.filter(function (node) { return !(x.id.toLowerCase() === node.id.toLowerCase() && x.parentId.toLowerCase() === node.parentId.toLowerCase()); });
|
18833
|
+
}
|
18834
|
+
});
|
18835
|
+
return;
|
18836
|
+
}
|
18413
18837
|
var listChildren = [];
|
18414
18838
|
listChildren = this.getAllChildrenNodeRecursive(listChildren, item);
|
18415
18839
|
var itemIndex = this.selectedOptions.findIndex(function (node) { return node.id === item.id && node.parentId === item.parentId; });
|
18416
18840
|
if (itemIndex >= 0) {
|
18417
|
-
this.enableSelectedNode(this.selectedOptions[itemIndex]);
|
18418
18841
|
this.selectedOptions.splice(itemIndex, 1);
|
18842
|
+
this.disabledList = this.disabledList.filter(function (x) { return !(x.id === item.id && x.parentId === item.parentId); });
|
18419
18843
|
}
|
18420
18844
|
listChildren.forEach(function (x) {
|
18421
18845
|
var index = _this.selectedOptions.findIndex(function (node) { return node.id === x.id && node.parentId === x.parentId; });
|
@@ -18535,7 +18959,7 @@
|
|
18535
18959
|
}
|
18536
18960
|
}
|
18537
18961
|
this.checkedNodeList = this.checkedNodeList.filter(function (x) { return x.id !== node.id || x.parentId !== node.parentId; });
|
18538
|
-
this.
|
18962
|
+
this.deleteNodeFromSelectedNode(node);
|
18539
18963
|
}
|
18540
18964
|
else {
|
18541
18965
|
var itemIndex = this.selectedOptions.findIndex(function (item) { return node.id === item.id && node.parentId === item.parentId; });
|
@@ -18609,7 +19033,17 @@
|
|
18609
19033
|
});
|
18610
19034
|
};
|
18611
19035
|
SelectIncludeChildrenPopUpComponent.prototype.refactorSelectList = function (node) {
|
19036
|
+
this.combineNodes({
|
19037
|
+
id: node.id,
|
19038
|
+
itemName: node.name,
|
19039
|
+
type: exports.SelectOptionTypes.IncludeChildren,
|
19040
|
+
parentId: node.parentId
|
19041
|
+
});
|
19042
|
+
};
|
19043
|
+
SelectIncludeChildrenPopUpComponent.prototype.deleteNodeFromSelectedNode = function (node) {
|
18612
19044
|
var _this = this;
|
19045
|
+
var children = [];
|
19046
|
+
children = this.getAllChildrenNodeRecursive(children, node);
|
18613
19047
|
var parent;
|
18614
19048
|
var parentList = [];
|
18615
19049
|
parent = this.treeData.find(function (x) { return x.rootId === node.parentId; });
|
@@ -18622,30 +19056,23 @@
|
|
18622
19056
|
});
|
18623
19057
|
parentList = this.getParentLineOfNode(parentList, parent);
|
18624
19058
|
}
|
19059
|
+
var parentIndex = -1;
|
18625
19060
|
if (parentList.length > 0) {
|
18626
|
-
|
18627
|
-
.findIndex(function (
|
18628
|
-
|
18629
|
-
|
18630
|
-
|
18631
|
-
|
18632
|
-
|
18633
|
-
|
18634
|
-
|
18635
|
-
|
18636
|
-
|
18637
|
-
|
18638
|
-
|
18639
|
-
|
18640
|
-
|
18641
|
-
}
|
18642
|
-
}
|
18643
|
-
else {
|
18644
|
-
this.combineNodes({
|
18645
|
-
id: node.id,
|
18646
|
-
itemName: node.name,
|
18647
|
-
type: exports.SelectOptionTypes.IncludeChildren,
|
18648
|
-
parentId: node.parentId
|
19061
|
+
parentList.forEach(function (parent) {
|
19062
|
+
parentIndex = _this.checkedNodeList.findIndex(function (x) { return x.id.toLowerCase() === parent.id.toLowerCase() && x.parentId.toLowerCase() === parent.parentId.toLowerCase(); });
|
19063
|
+
if (parentIndex >= 0) {
|
19064
|
+
var index = _this.checkedNodeList[parentIndex].children.findIndex(function (x) { return x.id.toLowerCase() === node.id.toLowerCase() && x.parentId.toLowerCase() === node.parentId.toLowerCase(); });
|
19065
|
+
if (index >= 0) {
|
19066
|
+
_this.checkedNodeList[parentIndex].children.splice(index, 1);
|
19067
|
+
}
|
19068
|
+
children.forEach(function (child) {
|
19069
|
+
var index = _this.checkedNodeList[parentIndex].children.findIndex(function (x) { return x.id.toLowerCase() === child.id.toLowerCase() && x.parentId.toLowerCase() === child.parentId.toLowerCase(); });
|
19070
|
+
if (index >= 0) {
|
19071
|
+
_this.checkedNodeList[parentIndex].children.splice(index, 1);
|
19072
|
+
}
|
19073
|
+
});
|
19074
|
+
_this.checkedNodeList[parentIndex].noSelectedChildren = _this.checkedNodeList[parentIndex].children.length;
|
19075
|
+
}
|
18649
19076
|
});
|
18650
19077
|
}
|
18651
19078
|
};
|
@@ -18690,7 +19117,7 @@
|
|
18690
19117
|
this.checkedNodeList[selectedNodeIndex].children = nodeList;
|
18691
19118
|
this.checkedNodeList[selectedNodeIndex].noChildren = children.length;
|
18692
19119
|
this.checkedNodeList[selectedNodeIndex].noSelectedChildren = nodeList.length;
|
18693
|
-
this.checkedNodeList[selectedNodeIndex].type =
|
19120
|
+
this.checkedNodeList[selectedNodeIndex].type = exports.SelectOptionTypes.IncludeChildren;
|
18694
19121
|
}
|
18695
19122
|
};
|
18696
19123
|
SelectIncludeChildrenPopUpComponent.prototype.getParentLineOfNode = function (listParent, node) {
|
@@ -18715,7 +19142,7 @@
|
|
18715
19142
|
return {
|
18716
19143
|
id: x.id,
|
18717
19144
|
name: x.itemName,
|
18718
|
-
parentId:
|
19145
|
+
parentId: x.parentId,
|
18719
19146
|
level: 0,
|
18720
19147
|
expandable: true,
|
18721
19148
|
hasChild: true,
|
@@ -18747,18 +19174,11 @@
|
|
18747
19174
|
}
|
18748
19175
|
};
|
18749
19176
|
SelectIncludeChildrenPopUpComponent.prototype.enableSelectedNode = function (node) {
|
18750
|
-
var children = [];
|
18751
|
-
children = this.getAllChildrenNodeRecursive(children, {
|
18752
|
-
id: node.id,
|
18753
|
-
name: node.itemName,
|
18754
|
-
parentId: node.parentId,
|
18755
|
-
level: 0,
|
18756
|
-
expandable: true,
|
18757
|
-
hasChild: true,
|
18758
|
-
disabled: false
|
18759
|
-
});
|
18760
|
-
this.disabledList = this.disabledList.filter(function (x) { return children.filter(function (child) { return (x.id === child.id && x.parentId === child.parentId); }).length === 0; });
|
18761
19177
|
this.disabledList = this.disabledList.filter(function (x) { return !(x.id === node.id && x.parentId === node.parentId); });
|
19178
|
+
if (node.type === exports.SelectOptionTypes.IncludeChildren) {
|
19179
|
+
var children_1 = node.children;
|
19180
|
+
this.disabledList = this.disabledList.filter(function (x) { return children_1.filter(function (child) { return (x.id === child.id && x.parentId === child.parentId); }).length === 0; });
|
19181
|
+
}
|
18762
19182
|
};
|
18763
19183
|
return SelectIncludeChildrenPopUpComponent;
|
18764
19184
|
}());
|
@@ -20498,7 +20918,7 @@
|
|
20498
20918
|
});
|
20499
20919
|
this.globalService.searchRelated.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (res) {
|
20500
20920
|
if (res && res.length) {
|
20501
|
-
_this.filteredOptions = res;
|
20921
|
+
_this.filteredOptions = _this.toRelatedOptions(res);
|
20502
20922
|
}
|
20503
20923
|
});
|
20504
20924
|
this.globalService.splitViewValue.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (res) {
|
@@ -20590,6 +21010,11 @@
|
|
20590
21010
|
this.searchOrder = this.getSearchOrder();
|
20591
21011
|
};
|
20592
21012
|
SelectProcessDocumentPopupComponent.prototype.ngAfterViewChecked = function () {
|
21013
|
+
this.cdRef.detectChanges();
|
21014
|
+
if (this.filteredOptions && this.filteredOptions.length) {
|
21015
|
+
// this.autoComplete.openPanel();
|
21016
|
+
this.setResultHeight();
|
21017
|
+
}
|
20593
21018
|
};
|
20594
21019
|
SelectProcessDocumentPopupComponent.prototype.removeCheckedNodeList = function (item) {
|
20595
21020
|
var _this = this;
|
@@ -20688,141 +21113,40 @@
|
|
20688
21113
|
return related ? related.itemName : undefined;
|
20689
21114
|
};
|
20690
21115
|
SelectProcessDocumentPopupComponent.prototype.selectRelated = function (item) {
|
20691
|
-
var _this = this;
|
20692
21116
|
var index = -1;
|
20693
21117
|
this.selectedNode = [];
|
20694
21118
|
if (this.treeConfig1.showCheckBox) {
|
20695
21119
|
index = this.checkedNodeList.findIndex(function (x) {
|
20696
|
-
return x.id === item.id && x.parentId === item.parentId;
|
21120
|
+
return x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase() && x.itemType === item.itemType;
|
20697
21121
|
});
|
20698
21122
|
}
|
20699
21123
|
if (index < 0) {
|
20700
|
-
|
20701
|
-
var node = void 0;
|
20702
|
-
var typeId = void 0;
|
20703
|
-
if (item.itemType === this.dataType.document) {
|
21124
|
+
if (item.itemType === this.dataType.document || item.itemType === this.dataType.folder) {
|
20704
21125
|
// document
|
20705
21126
|
var isExistInDisabled = this.disabledList2.findIndex(function (x) {
|
20706
|
-
|
20707
|
-
|
20708
|
-
|
21127
|
+
var _a;
|
21128
|
+
return ((_a = x.id) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === item.id.toLowerCase() && (!item.parentId || x.parentId.toLowerCase() === item.parentId.toLowerCase() && x.itemType === item.itemType);
|
21129
|
+
}) >= 0;
|
21130
|
+
if (isExistInDisabled) {
|
20709
21131
|
return;
|
20710
21132
|
}
|
20711
|
-
|
20712
|
-
return x.id === item.id && x.parentId === item.parentId && !x.expandable;
|
20713
|
-
});
|
20714
|
-
if (position >= 0) {
|
20715
|
-
this.addToChecklistNodeAndSelectedData(item);
|
20716
|
-
node = this.treeData2[position];
|
20717
|
-
typeId = this.dataType.document;
|
20718
|
-
var treeNode = {
|
20719
|
-
id: node.childId,
|
20720
|
-
name: node.childName,
|
20721
|
-
children: [],
|
20722
|
-
parentId: node.rootId,
|
20723
|
-
expandable: false
|
20724
|
-
};
|
20725
|
-
this.dataTrees.toArray()[1].todoItemSelectionProcessDocument([treeNode]);
|
20726
|
-
}
|
20727
|
-
else {
|
20728
|
-
this.addNodeToTree(item);
|
20729
|
-
this.addToChecklistNodeAndSelectedData(item);
|
20730
|
-
setTimeout(function () {
|
20731
|
-
var treeNode = {
|
20732
|
-
id: item.id,
|
20733
|
-
name: item.itemName,
|
20734
|
-
children: [],
|
20735
|
-
parentId: item.parentId,
|
20736
|
-
expandable: false
|
20737
|
-
};
|
20738
|
-
_this.dataTrees.toArray()[1].todoItemSelectionProcessDocument([treeNode]);
|
20739
|
-
}, 500);
|
20740
|
-
}
|
21133
|
+
this.addToChecklistNodeAndSelectedData(item);
|
20741
21134
|
}
|
20742
|
-
else if (item.itemType === this.dataType.
|
20743
|
-
position = this.treeData2.findIndex(function (x) {
|
20744
|
-
return x.id.toLowerCase() === item.id.toLowerCase() && (!item.parentId || x.parentId.toLowerCase() === item.parentId.toLowerCase());
|
20745
|
-
});
|
20746
|
-
typeId = item.itemType;
|
20747
|
-
if (position >= 0) {
|
20748
|
-
node = this.treeData2[position];
|
20749
|
-
var treeNode = {
|
20750
|
-
id: node.id,
|
20751
|
-
name: node.name,
|
20752
|
-
children: [],
|
20753
|
-
parentId: node.parentId,
|
20754
|
-
expandable: true,
|
20755
|
-
};
|
20756
|
-
this.dataTrees.toArray()[1].todoFolderSelection([treeNode]);
|
20757
|
-
}
|
20758
|
-
else {
|
20759
|
-
this.addNodeToTree(item);
|
20760
|
-
this.addToChecklistNodeAndSelectedData(item);
|
20761
|
-
}
|
20762
|
-
return;
|
20763
|
-
}
|
20764
|
-
else if (item.itemType === this.dataType.area) {
|
20765
|
-
position = this.treeData1.findIndex(function (x) {
|
20766
|
-
return x.id.toLowerCase() === item.id.toLowerCase() && (!item.parentId || x.parentId.toLowerCase() === item.parentId.toLowerCase()) && x.expandable;
|
20767
|
-
});
|
20768
|
-
typeId = item.itemType;
|
20769
|
-
if (position >= 0) {
|
20770
|
-
node = this.treeData1[position];
|
20771
|
-
var treeNode = {
|
20772
|
-
id: node.id,
|
20773
|
-
name: node.name,
|
20774
|
-
children: [],
|
20775
|
-
parentId: node.parentId,
|
20776
|
-
expandable: true
|
20777
|
-
};
|
20778
|
-
this.dataTrees.toArray()[0].todoFolderSelection([treeNode]);
|
20779
|
-
}
|
20780
|
-
else {
|
20781
|
-
this.addNodeToTree(item);
|
20782
|
-
this.addToChecklistNodeAndSelectedData(item);
|
20783
|
-
}
|
20784
|
-
return;
|
20785
|
-
}
|
20786
|
-
else {
|
21135
|
+
else if (item.itemType === this.dataType.area || item.itemType === this.dataType.process) {
|
20787
21136
|
var isExistInDisabled = this.disabledList.findIndex(function (x) {
|
20788
|
-
|
20789
|
-
|
20790
|
-
|
21137
|
+
var _a;
|
21138
|
+
return ((_a = x.id) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === item.id.toLowerCase() && (!item.parentId || x.parentId.toLowerCase() === item.parentId.toLowerCase() && x.itemType === item.itemType);
|
21139
|
+
}) >= 0;
|
21140
|
+
if (isExistInDisabled) {
|
20791
21141
|
return;
|
20792
21142
|
}
|
20793
|
-
|
20794
|
-
return x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase() && !x.expandable;
|
20795
|
-
});
|
20796
|
-
if (position >= 0) {
|
20797
|
-
node = this.treeData1[position];
|
20798
|
-
typeId = this.itemType;
|
20799
|
-
var treeNode = {
|
20800
|
-
id: node.childId,
|
20801
|
-
name: node.childName,
|
20802
|
-
children: [],
|
20803
|
-
parentId: node.rootId,
|
20804
|
-
expandable: false
|
20805
|
-
};
|
20806
|
-
this.addToChecklistNodeAndSelectedData(item);
|
20807
|
-
this.dataTrees.toArray()[0].todoItemSelectionProcessDocument([treeNode]);
|
20808
|
-
}
|
20809
|
-
else {
|
20810
|
-
this.addNodeToTree(item);
|
20811
|
-
this.addToChecklistNodeAndSelectedData(item);
|
20812
|
-
setTimeout(function () {
|
20813
|
-
var treeNode = {
|
20814
|
-
id: item.id,
|
20815
|
-
name: item.itemName,
|
20816
|
-
children: [],
|
20817
|
-
parentId: item.parentId,
|
20818
|
-
expandable: false
|
20819
|
-
};
|
20820
|
-
_this.dataTrees.toArray()[0].todoItemSelectionProcessDocument([treeNode]);
|
20821
|
-
}, 500);
|
20822
|
-
}
|
21143
|
+
this.addToChecklistNodeAndSelectedData(item);
|
20823
21144
|
}
|
20824
21145
|
}
|
20825
21146
|
};
|
21147
|
+
SelectProcessDocumentPopupComponent.prototype.displayWhenSelectRelatedOption = function ($event) {
|
21148
|
+
return '';
|
21149
|
+
};
|
20826
21150
|
SelectProcessDocumentPopupComponent.prototype.addNodeToTree = function (item) {
|
20827
21151
|
var newNodeDocs = new NewTreeModel();
|
20828
21152
|
newNodeDocs.id = item.id;
|
@@ -20863,30 +21187,34 @@
|
|
20863
21187
|
(!newNodeDocs.parentId || x.parentId.toLowerCase() === newNodeDocs.parentId.toLowerCase()) && x.expandable === newNodeDocs.expandable; });
|
20864
21188
|
if (index < 0) {
|
20865
21189
|
if (item.itemType == exports.DataType.folder || item.itemType == exports.DataType.document) {
|
20866
|
-
this.documentCheckedList.
|
20867
|
-
|
20868
|
-
|
20869
|
-
|
20870
|
-
|
20871
|
-
|
20872
|
-
|
20873
|
-
|
20874
|
-
|
20875
|
-
|
20876
|
-
|
21190
|
+
if (this.documentCheckedList.findIndex(function (x) { return x.id.toLowerCase() === newNodeDocs.id.toLowerCase() && x.parentId.toLowerCase() === newNodeDocs.parentId.toLowerCase(); }) < 0) {
|
21191
|
+
this.documentCheckedList.push({
|
21192
|
+
id: newNodeDocs.id,
|
21193
|
+
name: newNodeDocs.name,
|
21194
|
+
itemType: item.itemType,
|
21195
|
+
parentId: newNodeDocs.parentId,
|
21196
|
+
levelType: newNodeDocs.levelType,
|
21197
|
+
level: 0,
|
21198
|
+
disabled: false,
|
21199
|
+
expandable: newNodeDocs.expandable,
|
21200
|
+
hasChild: newNodeDocs.expandable
|
21201
|
+
});
|
21202
|
+
}
|
20877
21203
|
}
|
20878
21204
|
else {
|
20879
|
-
this.commonCheckedList.
|
20880
|
-
|
20881
|
-
|
20882
|
-
|
20883
|
-
|
20884
|
-
|
20885
|
-
|
20886
|
-
|
20887
|
-
|
20888
|
-
|
20889
|
-
|
21205
|
+
if (this.commonCheckedList.findIndex(function (x) { return x.id.toLowerCase() === newNodeDocs.id.toLowerCase() && x.parentId.toLowerCase() === newNodeDocs.parentId.toLowerCase(); }) < 0) {
|
21206
|
+
this.commonCheckedList.push({
|
21207
|
+
id: newNodeDocs.id,
|
21208
|
+
name: newNodeDocs.name,
|
21209
|
+
itemType: item.itemType,
|
21210
|
+
parentId: newNodeDocs.parentId,
|
21211
|
+
levelType: newNodeDocs.levelType,
|
21212
|
+
level: 0,
|
21213
|
+
disabled: false,
|
21214
|
+
expandable: newNodeDocs.expandable,
|
21215
|
+
hasChild: newNodeDocs.expandable
|
21216
|
+
});
|
21217
|
+
}
|
20890
21218
|
}
|
20891
21219
|
this.checkedNodeList.push({
|
20892
21220
|
moduleId: this.moduleId,
|
@@ -20966,6 +21294,7 @@
|
|
20966
21294
|
level: 0,
|
20967
21295
|
disabled: false,
|
20968
21296
|
hasChild: item.itemType == exports.DataType.area || item.itemType == exports.DataType.folder,
|
21297
|
+
itemType: item.itemType
|
20969
21298
|
});
|
20970
21299
|
};
|
20971
21300
|
SelectProcessDocumentPopupComponent.prototype.setTypeProcess = function (expand) {
|
@@ -21131,7 +21460,7 @@
|
|
21131
21460
|
return;
|
21132
21461
|
}
|
21133
21462
|
var index = this.checkedNodeList.findIndex(function (x) { return x.id.toLowerCase() === node.id.toLowerCase()
|
21134
|
-
&& (!node.parentId || x.parentId.toLowerCase() === node.parentId.toLowerCase()) && x.itemType
|
21463
|
+
&& (!node.parentId || x.parentId.toLowerCase() === node.parentId.toLowerCase()) && x.itemType === node.itemType; });
|
21135
21464
|
if (index >= 0) {
|
21136
21465
|
this.removeCheckedNodeList({
|
21137
21466
|
id: node.id,
|
@@ -21204,14 +21533,36 @@
|
|
21204
21533
|
this.onSelectFolderItem.emit(item);
|
21205
21534
|
}
|
21206
21535
|
};
|
21536
|
+
SelectProcessDocumentPopupComponent.prototype.hasSelected = function (related) {
|
21537
|
+
var arrDisabledList = this.disabledList.concat(this.disabledList2);
|
21538
|
+
return arrDisabledList.some(function (node) { return node.id.toUpperCase() === related.id.toUpperCase(); });
|
21539
|
+
};
|
21540
|
+
SelectProcessDocumentPopupComponent.prototype.toRelatedOptions = function (relateds) {
|
21541
|
+
var e_1, _b;
|
21542
|
+
var results = [];
|
21543
|
+
try {
|
21544
|
+
for (var relateds_1 = __values(relateds), relateds_1_1 = relateds_1.next(); !relateds_1_1.done; relateds_1_1 = relateds_1.next()) {
|
21545
|
+
var related = relateds_1_1.value;
|
21546
|
+
results.push(Object.assign(Object.assign({}, related), { disabled: this.hasSelected(related) }));
|
21547
|
+
}
|
21548
|
+
}
|
21549
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
21550
|
+
finally {
|
21551
|
+
try {
|
21552
|
+
if (relateds_1_1 && !relateds_1_1.done && (_b = relateds_1.return)) _b.call(relateds_1);
|
21553
|
+
}
|
21554
|
+
finally { if (e_1) throw e_1.error; }
|
21555
|
+
}
|
21556
|
+
return results;
|
21557
|
+
};
|
21207
21558
|
return SelectProcessDocumentPopupComponent;
|
21208
21559
|
}());
|
21209
21560
|
SelectProcessDocumentPopupComponent.decorators = [
|
21210
21561
|
{ type: i0.Component, args: [{
|
21211
21562
|
selector: 'qms-select-process-document',
|
21212
|
-
template: "<div id=\"qmslib_related_popup\" class=\"qmslib__related__popup__container\">\r\n <div id=\"qmslib_related_popup_header\">\r\n <span mat-icon-button class=\"button__close\" (click)=\"onCloseClick()\">\r\n <mat-icon mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmslib_related_popup_header_001\" mat-dialog-content>\r\n <span>{{ moduleName | uppercase }}</span>\r\n </div>\r\n </div>\r\n \r\n <div id=\"qmslib_related_popup_search\" class=\"input__field\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n />\r\n <mat-icon>search</mat-icon>\r\n </div>\r\n \r\n <div class=\"line__divider\"></div>\r\n \r\n <mat-autocomplete\r\n #auto=\"matAutocomplete\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n [class.related-viewport]=\"isInputValue\"\r\n >\r\n <ng-container *ngFor=\"let type of searchOrder\">\r\n <div\r\n class=\"search__module-result\"\r\n *ngIf=\"canShowSearchOption(type.value)\"\r\n >\r\n <span class=\"search__module-title\">{{ getTitle(type.value) }}</span>\r\n <mat-option\r\n class=\"search__option\"\r\n *ngFor=\"let option of getModuleFilteredOptions(type.value)\"\r\n [value]=\"option\"\r\n (click)=\"selectRelated(option)\"\r\n >\r\n <qms-list-item type=\"image-square\">\r\n <mat-icon\r\n leading-icon\r\n type=\"image-square\"\r\n [svgIcon]=\"getNodeIcon(option)\"\r\n ></mat-icon>\r\n <div qms-list-header>\r\n <div qms-line type=\"subtitle\" class=\"search__option-name\">\r\n {{ option.itemName }}\r\n </div>\r\n <div\r\n class=\"caption\"\r\n *ngIf=\"option.breadcumbs && option.breadcumbs.length\"\r\n >\r\n <qms-breadcrumb\r\n class=\"breadcrumb-containe\"\r\n type=\"table\"\r\n numDisplayItem=\"1\"\r\n [nodes]=\"option.breadcumbs\"\r\n >\r\n </qms-breadcrumb>\r\n </div>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"getItemId(option)\">\r\n <span class=\"material-icons-outlined search__description-icon\">\r\n local_offer\r\n </span>\r\n {{ getItemId(option) }}\r\n </div>\r\n </qms-list-item>\r\n </mat-option>\r\n </div>\r\n </ng-container>\r\n </cdk-virtual-scroll-viewport>\r\n </mat-autocomplete>\r\n \r\n <div class=\"row\">\r\n <div\r\n class=\"qms-scrollbar qmslib_related_popup_content\"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length,\r\n 'col-6': splitView,\r\n 'col-12': !splitView\r\n }\"\r\n >\r\n <mat-expansion-panel\r\n hideToggle\r\n id=\"qmslib_related_popup_common_001\"\r\n [expanded]=\"isCommonExpanded\"\r\n (opened)=\"isCommonExpanded = true\"\r\n (closed)=\"isCommonExpanded = false\"\r\n class=\"panel-tree\"\r\n >\r\n <mat-expansion-panel-header class=\"padding-5\">\r\n <mat-panel-title *ngIf=\"moduleId === module.documentProcess\">\r\n {{ LANG.PROCESSES | uppercase }}\r\n </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isCommonExpanded ? \"keyboard_arrow_up\" : \"keyboard_arrow_down\"\r\n }}\r\n </mat-icon>\r\n </button>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmslib_related_popup_common_002\">\r\n <qms-tree-new\r\n [treeData]=\"treeData1\"\r\n [treeConfig]=\"treeConfig1\"\r\n [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\"\r\n [disabledList]=\"disabledList\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.area)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n (selectFolderEvent)=\"getItemOfFolder($event, dataType.area)\"\r\n [expandOnTitleClick]=\"!splitView\"\r\n [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeProcess($event)\"\r\n ></qms-tree-new>\r\n </div>\r\n </mat-expansion-panel>\r\n \r\n <div\r\n *ngIf=\"moduleId === module.documentProcess\"\r\n class=\"line__divider\"\r\n ></div>\r\n \r\n <mat-expansion-panel\r\n hideToggle\r\n *ngIf=\"moduleId === module.documentProcess\"\r\n id=\"qmslib_related_popup_document_001\"\r\n [expanded]=\"isDocumentExpanded\"\r\n (opened)=\"isDocumentExpanded = true\"\r\n (closed)=\"isDocumentExpanded = false\"\r\n class=\"panel-tree\"\r\n >\r\n <mat-expansion-panel-header class=\"padding-5\">\r\n <mat-panel-title> {{ LANG.DOCUMENTS | uppercase }} </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isDocumentExpanded ? \"keyboard_arrow_up\" : \"keyboard_arrow_down\"\r\n }}\r\n </mat-icon>\r\n </button>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmslib_related_popup_document_002\">\r\n <qms-tree-new\r\n [treeData]=\"treeData2\"\r\n [treeConfig]=\"treeConfig2\"\r\n [selectedData]=\"selectedData2\"\r\n [disabledList]=\"disabledList2\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.folder)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n (selectFolderEvent)=\"getItemOfFolder($event, dataType.folder)\"\r\n [expandOnTitleClick]=\"!splitView\"\r\n [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeDocument($event)\"\r\n ></qms-tree-new>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n <div\r\n *ngIf=\"splitView\"\r\n class=\"\r\n qms-scrollbar\r\n qmslib-related-popup-splitview qmslib_related_popup_content\r\n col-6\r\n \"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length\r\n }\"\r\n >\r\n <div class=\"splitview-header\" *ngIf=\"selectedFolder\">\r\n {{ splitViewTitle }}\r\n </div>\r\n <div class=\"expand-node\" *ngFor=\"let node of itemInSplitview\">\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n [checked]=\"isNodeSelected(node)\"\r\n (change)=\"toggleSelectItem(node)\"\r\n ></mat-checkbox>\r\n <mat-icon\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getNodeIcon(node)\"\r\n ></mat-icon>\r\n <span class=\"text-node\">{{ node.itemName }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <div *ngIf=\"checkedNodeList.length\" class=\"line__divider\"></div>\r\n \r\n <div *ngIf=\"checkedNodeList.length\" class=\"panel__item qms-scrollbar\">\r\n <div class=\"related__item__inline\" *ngFor=\"let item of checkedNodeList\">\r\n <button\r\n *ngIf=\"item.itemName\"\r\n mat-button\r\n class=\"related__item__content\"\r\n qms-tool-tip=\"{{\r\n isEllipsisActive(itemName) ? getItemChipName(item) : ''\r\n }}\"\r\n mode=\"dark\"\r\n >\r\n <span class=\"related__item__content_name\" #itemName>{{\r\n getItemChipName(item)\r\n }}</span>\r\n <mat-icon\r\n *ngIf=\"!(treeConfig1?.selectOne || treeConfig2?.selectOne)\"\r\n (click)=\"removeCheckedNodeList(item)\"\r\n >cancel</mat-icon\r\n >\r\n </button>\r\n </div>\r\n </div>\r\n \r\n <div class=\"line__divider\"></div>\r\n \r\n <div class=\"confirm__button__groups\">\r\n <button\r\n *ngIf=\"!checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 7px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }}\r\n </button>\r\n <button\r\n *ngIf=\"checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 0px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }} ({{ checkedNodeList.length }})\r\n </button>\r\n <button\r\n qms-btn-text\r\n [ngStyle]=\"{ 'margin-top': checkedNodeList.length ? '0px' : '7px' }\"\r\n (click)=\"onCloseClick()\"\r\n >\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </div>\r\n </div>\r\n ",
|
21563
|
+
template: "<div id=\"qmslib_related_popup\" class=\"qmslib__related__popup__container\">\r\n <div id=\"qmslib_related_popup_header\">\r\n <span mat-icon-button class=\"button__close\" (click)=\"onCloseClick()\">\r\n <mat-icon mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmslib_related_popup_header_001\" mat-dialog-content>\r\n <span>{{ moduleName | uppercase }}</span>\r\n </div>\r\n </div>\r\n \r\n <div id=\"qmslib_related_popup_search\" class=\"input__field\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n />\r\n <mat-icon>search</mat-icon>\r\n </div>\r\n \r\n <div class=\"line__divider\"></div>\r\n \r\n <mat-autocomplete\r\n #auto=\"matAutocomplete\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n (optionSelected)=\"selectRelated($event.option.value)\"\r\n [displayWith]=\"displayWhenSelectRelatedOption\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n [class.related-viewport]=\"isInputValue\"\r\n *ngIf=\"filteredOptions.length\"\r\n >\r\n <ng-container *ngFor=\"let type of searchOrder\">\r\n <div\r\n class=\"search__module-result\"\r\n *ngIf=\"canShowSearchOption(type.value)\"\r\n >\r\n <span class=\"search__module-title\">{{ getTitle(type.value) }}</span>\r\n <mat-option\r\n class=\"search__option\"\r\n *ngFor=\"let option of getModuleFilteredOptions(type.value)\"\r\n [value]=\"option\"\r\n [disabled]=\"option.disabled\"\r\n >\r\n <qms-list-item type=\"image-square\">\r\n <mat-icon\r\n leading-icon\r\n type=\"image-square\"\r\n [svgIcon]=\"getNodeIcon(option)\"\r\n ></mat-icon>\r\n <div qms-list-header>\r\n <div qms-line type=\"subtitle\" class=\"search__option-name\">\r\n {{ option.itemName }}\r\n </div>\r\n <div\r\n class=\"caption\"\r\n *ngIf=\"option.breadcumbs && option.breadcumbs.length\"\r\n >\r\n <qms-breadcrumb\r\n class=\"breadcrumb-containe\"\r\n type=\"table\"\r\n numDisplayItem=\"1\"\r\n [nodes]=\"option.breadcumbs\"\r\n >\r\n </qms-breadcrumb>\r\n </div>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"getItemId(option)\">\r\n <span class=\"material-icons-outlined search__description-icon\">\r\n local_offer\r\n </span>\r\n {{ getItemId(option) }}\r\n </div>\r\n </qms-list-item>\r\n </mat-option>\r\n </div>\r\n </ng-container>\r\n </cdk-virtual-scroll-viewport>\r\n </mat-autocomplete>\r\n \r\n <div class=\"row\">\r\n <div\r\n class=\"qms-scrollbar qmslib_related_popup_content\"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length,\r\n 'col-6': splitView,\r\n 'col-12': !splitView\r\n }\"\r\n >\r\n <mat-expansion-panel\r\n hideToggle\r\n id=\"qmslib_related_popup_common_001\"\r\n [expanded]=\"isCommonExpanded\"\r\n (opened)=\"isCommonExpanded = true\"\r\n (closed)=\"isCommonExpanded = false\"\r\n class=\"panel-tree\"\r\n >\r\n <mat-expansion-panel-header class=\"padding-5\">\r\n <mat-panel-title *ngIf=\"moduleId === module.documentProcess\">\r\n {{ LANG.PROCESSES | uppercase }}\r\n </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isCommonExpanded ? \"keyboard_arrow_up\" : \"keyboard_arrow_down\"\r\n }}\r\n </mat-icon>\r\n </button>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmslib_related_popup_common_002\">\r\n <qms-tree-new\r\n [treeData]=\"treeData1\"\r\n [treeConfig]=\"treeConfig1\"\r\n [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\"\r\n [disabledList]=\"disabledList\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.area)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n (selectFolderEvent)=\"getItemOfFolder($event, dataType.area)\"\r\n [expandOnTitleClick]=\"!splitView\"\r\n [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeProcess($event)\"\r\n ></qms-tree-new>\r\n </div>\r\n </mat-expansion-panel>\r\n \r\n <div\r\n *ngIf=\"moduleId === module.documentProcess\"\r\n class=\"line__divider\"\r\n ></div>\r\n \r\n <mat-expansion-panel\r\n hideToggle\r\n *ngIf=\"moduleId === module.documentProcess\"\r\n id=\"qmslib_related_popup_document_001\"\r\n [expanded]=\"isDocumentExpanded\"\r\n (opened)=\"isDocumentExpanded = true\"\r\n (closed)=\"isDocumentExpanded = false\"\r\n class=\"panel-tree\"\r\n >\r\n <mat-expansion-panel-header class=\"padding-5\">\r\n <mat-panel-title> {{ LANG.DOCUMENTS | uppercase }} </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isDocumentExpanded ? \"keyboard_arrow_up\" : \"keyboard_arrow_down\"\r\n }}\r\n </mat-icon>\r\n </button>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmslib_related_popup_document_002\">\r\n <qms-tree-new\r\n [treeData]=\"treeData2\"\r\n [treeConfig]=\"treeConfig2\"\r\n [selectedData]=\"selectedData2\"\r\n [disabledList]=\"disabledList2\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.folder)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n (selectFolderEvent)=\"getItemOfFolder($event, dataType.folder)\"\r\n [expandOnTitleClick]=\"!splitView\"\r\n [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeDocument($event)\"\r\n ></qms-tree-new>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n <div\r\n *ngIf=\"splitView\"\r\n class=\"\r\n qms-scrollbar\r\n qmslib-related-popup-splitview qmslib_related_popup_content\r\n col-6\r\n \"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length\r\n }\"\r\n >\r\n <div class=\"splitview-header\" *ngIf=\"selectedFolder\">\r\n {{ splitViewTitle }}\r\n </div>\r\n <div class=\"expand-node\" *ngFor=\"let node of itemInSplitview\">\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n [checked]=\"isNodeSelected(node)\"\r\n (change)=\"toggleSelectItem(node)\"\r\n ></mat-checkbox>\r\n <mat-icon\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getNodeIcon(node)\"\r\n ></mat-icon>\r\n <span class=\"text-node\">{{ node.itemName }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <div *ngIf=\"checkedNodeList.length\" class=\"line__divider\"></div>\r\n \r\n <div *ngIf=\"checkedNodeList.length\" class=\"panel__item qms-scrollbar\">\r\n <div class=\"related__item__inline\" *ngFor=\"let item of checkedNodeList\">\r\n <button\r\n *ngIf=\"item.itemName\"\r\n mat-button\r\n class=\"related__item__content\"\r\n qms-tool-tip=\"{{\r\n isEllipsisActive(itemName) ? getItemChipName(item) : ''\r\n }}\"\r\n mode=\"dark\"\r\n >\r\n <span class=\"related__item__content_name\" #itemName>{{\r\n getItemChipName(item)\r\n }}</span>\r\n <mat-icon\r\n *ngIf=\"!(treeConfig1?.selectOne || treeConfig2?.selectOne)\"\r\n (click)=\"removeCheckedNodeList(item)\"\r\n >cancel</mat-icon\r\n >\r\n </button>\r\n </div>\r\n </div>\r\n \r\n <div class=\"line__divider\"></div>\r\n \r\n <div class=\"confirm__button__groups\">\r\n <button\r\n *ngIf=\"!checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 7px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }}\r\n </button>\r\n <button\r\n *ngIf=\"checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 0px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }} ({{ checkedNodeList.length }})\r\n </button>\r\n <button\r\n qms-btn-text\r\n [ngStyle]=\"{ 'margin-top': checkedNodeList.length ? '0px' : '7px' }\"\r\n (click)=\"onCloseClick()\"\r\n >\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </div>\r\n </div>\r\n ",
|
21213
21564
|
encapsulation: i0.ViewEncapsulation.None,
|
21214
|
-
styles: [".qms-scrollbar::-webkit-scrollbar{width:12px}.qms-scrollbar::-webkit-scrollbar-track{background:rgba(0,0,0,.12);background-clip:content-box}.qms-scrollbar::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}.qms-scrollbar::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms-scrollbar.none-scroll-bg::-webkit-scrollbar-track{background:transparent;background-clip:content-box}.qms__popup .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qms__danger button{border:none;color:#fff;padding:0;text-align:center;text-decoration:none;display:inline-block;cursor:pointer;height:20px;width:20px;font-family:Open Sans;font-size:12px;font-weight:600;font-style:normal;line-height:16px}.qms__danger .red{background-color:#9e360f;margin-left:10px}.qms__danger .yellow{background-color:#e4cf53;margin-left:10px;color:#323232}.qms__danger .green{background-color:#00804c;margin-left:10px}.confirm__button__groups{margin-top:11px}.confirm__button__groups button{min-height:36px;width:auto;font-family:Open Sans;font-weight:500;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px;margin-right:5px;float:right}.confirm__button__groups .confirm{background:#f8f9f9}.confirm__button__groups .confirm:hover{background:#001983;color:#fff}.confirm__button__groups .confirm:disabled{cursor:not-allowed}.confirm__button__groups .cancel{background:#f8f9f9}.confirm__button__groups .cancel:hover{background:#001983;color:#fff}.qmslib__related__popup__container .input__field{display:flex;align-items:center}.qmslib__related__popup__container .input__field input{width:100%;padding:10px;outline:none;border:none;background:#eee}.qmslib__related__popup__container .input__field .mat-icon{margin-left:-30px;cursor:pointer;vertical-align:middle}.qmslib__related__popup__container .line__divider{border-bottom:1px solid #ccc;height:1px;margin-top:10px;min-width:300px;max-width:100%}.qmslib__related__popup__container .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qmslib__related__popup__container .panel__content{height:450px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel-tree .mat-expansion-panel-body{padding:0 12px 12px}.qmslib__related__popup__container .mat-expansion-panel-header{height:30px;font-size:12px;letter-spacing:1px;font-family:Raleway;font-weight:600;padding:0}.qmslib__related__popup__container .mat-expansion-panel-header .mat-expansion-panel-header-title{align-items:center;margin-left:12px}.qmslib__related__popup__container .mat-expansion-panel-header .related_popup_toggle-btn{width:1.5rem;height:1.5rem;line-height:1.5rem}.qmslib__related__popup__container .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:none}.qmslib__related__popup__container .panel__item{height:100px;margin-top:12px;overflow-x:hidden;overflow-y:auto;padding-right:5px;width:100%;max-width:100%;display:flex;flex-wrap:wrap;align-content:flex-start}.qmslib__related__popup__container .panel__item .related__item__inline{max-width:100%}.qmslib__related__popup__container .panel__item .related__item__content{height:32px;line-height:32px;background-color:#e5e5e5;max-width:100%;margin-bottom:5px;margin-left:2.5px;margin-right:2.5px}.qmslib__related__popup__container .panel__item .related__item__content .mat-icon{color:#8e8e8e;font-size:24px}.qmslib__related__popup__container .panel__item .related__item__content span.related__item__content_name{display:inline-block;min-width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:278px}.qmslib__related__popup__container .qmslib-related-popup-splitview{background-color:#fff;border-left:1px solid #ccc;height:450px;overflow-y:auto;margin-top:12px}.qmslib__related__popup__container .qmslib-related-popup-splitview.panel__content{height:450px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .qmslib-related-popup-splitview.panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .qmslib-related-popup-splitview .splitview-header{height:30px;font-size:12px;letter-spacing:1px;font-family:RALEWAY;font-weight:600;display:flex;align-items:center}.qmslib__related__popup__container .qmslib-related-popup-splitview .mat-checkbox.qms-group-options{padding:0}.qmslib__related__popup__container .qmslib-related-popup-splitview .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:11px}.qmslib__related__popup__container .qmslib-related-popup-splitview .mat-checkbox.qms-group-options.mat-checkbox-checked{background:transparent!important}.qmslib__related__popup__container .qmslib-related-popup-splitview .expand-node{margin-left:8px;display:flex;align-items:center;min-height:40px}.qmslib__related__popup__container .qmslib-related-popup-splitview .expand-node .mat-icon{color:rgba(0,0,0,.6);margin-right:17px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.qmslib__related__popup__container .qmslib-related-popup-splitview .expand-node .mat-icon svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}cdk-virtual-scroll-viewport{overflow-x:hidden}cdk-virtual-scroll-viewport .search__module-result{margin:1.5rem;padding:0 0 .5rem}cdk-virtual-scroll-viewport .search__module-result .search__module-title{font-size:14px;font-weight:600}cdk-virtual-scroll-viewport .search__module-result .search__option{height:auto;line-height:normal;padding:8px 0;border-bottom:1px solid #e0e0e0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item.mat-2-line.image-item{height:auto}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content{margin:0;border-bottom:none}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square{width:2.5rem;height:100%;background:transparent;align-self:center;margin-right:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square img{width:24px;height:24px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .material-icons-outlined.leading-icon,cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content mat-icon.leading-icon{padding:4px 0 4px 4px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .subtitle{font-weight:400}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption{overflow:hidden;line-height:normal;white-space:normal;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:0;margin:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption span.search__result__parent-name{display:inline-block;width:auto;width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .default-subtitle{color:rgba(0,0,0,.38)}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .search__description-icon{margin-right:0;width:12px;height:12px;font-size:12px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .qms-list-text{border-bottom:none}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .breadcrumb-containe .qms-breadcrumb-item .mat-icon{font-size:16px!important;padding-bottom:1px}cdk-virtual-scroll-viewport .search__module-result svg{display:block}#qmslib_related_popup_header_001{margin-bottom:20px;padding:0;font-weight:600;font-family:Raleway}.padding-5{padding:5px}.mat-autocomplete_related-viewport{height:100%;max-height:100%!important}.mat-autocomplete_related-viewport .cdk-virtual-scroll-content-wrapper{width:100%}.mat-autocomplete_related-viewport .related-viewport{min-height:
|
21565
|
+
styles: [".qms-scrollbar::-webkit-scrollbar{width:12px}.qms-scrollbar::-webkit-scrollbar-track{background:rgba(0,0,0,.12);background-clip:content-box}.qms-scrollbar::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}.qms-scrollbar::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms-scrollbar.none-scroll-bg::-webkit-scrollbar-track{background:transparent;background-clip:content-box}.qms__popup .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qms__danger button{border:none;color:#fff;padding:0;text-align:center;text-decoration:none;display:inline-block;cursor:pointer;height:20px;width:20px;font-family:Open Sans;font-size:12px;font-weight:600;font-style:normal;line-height:16px}.qms__danger .red{background-color:#9e360f;margin-left:10px}.qms__danger .yellow{background-color:#e4cf53;margin-left:10px;color:#323232}.qms__danger .green{background-color:#00804c;margin-left:10px}.confirm__button__groups{margin-top:11px}.confirm__button__groups button{min-height:36px;width:auto;font-family:Open Sans;font-weight:500;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px;margin-right:5px;float:right}.confirm__button__groups .confirm{background:#f8f9f9}.confirm__button__groups .confirm:hover{background:#001983;color:#fff}.confirm__button__groups .confirm:disabled{cursor:not-allowed}.confirm__button__groups .cancel{background:#f8f9f9}.confirm__button__groups .cancel:hover{background:#001983;color:#fff}.qmslib__related__popup__container .input__field{display:flex;align-items:center}.qmslib__related__popup__container .input__field input{width:100%;padding:10px;outline:none;border:none;background:#eee}.qmslib__related__popup__container .input__field .mat-icon{margin-left:-30px;cursor:pointer;vertical-align:middle}.qmslib__related__popup__container .line__divider{border-bottom:1px solid #ccc;height:1px;margin-top:10px;min-width:300px;max-width:100%}.qmslib__related__popup__container .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qmslib__related__popup__container .panel__content{height:450px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel-tree .mat-expansion-panel-body{padding:0 12px 12px}.qmslib__related__popup__container .mat-expansion-panel-header{height:30px;font-size:12px;letter-spacing:1px;font-family:Raleway;font-weight:600;padding:0}.qmslib__related__popup__container .mat-expansion-panel-header .mat-expansion-panel-header-title{align-items:center;margin-left:12px}.qmslib__related__popup__container .mat-expansion-panel-header .related_popup_toggle-btn{width:1.5rem;height:1.5rem;line-height:1.5rem}.qmslib__related__popup__container .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:none}.qmslib__related__popup__container .panel__item{height:100px;margin-top:12px;overflow-x:hidden;overflow-y:auto;padding-right:5px;width:100%;max-width:100%;display:flex;flex-wrap:wrap;align-content:flex-start}.qmslib__related__popup__container .panel__item .related__item__inline{max-width:100%}.qmslib__related__popup__container .panel__item .related__item__content{height:32px;line-height:32px;background-color:#e5e5e5;max-width:100%;margin-bottom:5px;margin-left:2.5px;margin-right:2.5px}.qmslib__related__popup__container .panel__item .related__item__content .mat-icon{color:#8e8e8e;font-size:24px}.qmslib__related__popup__container .panel__item .related__item__content span.related__item__content_name{display:inline-block;min-width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:278px}.qmslib__related__popup__container .qmslib-related-popup-splitview{background-color:#fff;border-left:1px solid #ccc;height:450px;overflow-y:auto;margin-top:12px}.qmslib__related__popup__container .qmslib-related-popup-splitview.panel__content{height:450px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .qmslib-related-popup-splitview.panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .qmslib-related-popup-splitview .splitview-header{height:30px;font-size:12px;letter-spacing:1px;font-family:RALEWAY;font-weight:600;display:flex;align-items:center}.qmslib__related__popup__container .qmslib-related-popup-splitview .mat-checkbox.qms-group-options{padding:0}.qmslib__related__popup__container .qmslib-related-popup-splitview .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:11px}.qmslib__related__popup__container .qmslib-related-popup-splitview .mat-checkbox.qms-group-options.mat-checkbox-checked{background:transparent!important}.qmslib__related__popup__container .qmslib-related-popup-splitview .expand-node{margin-left:8px;display:flex;align-items:center;min-height:40px}.qmslib__related__popup__container .qmslib-related-popup-splitview .expand-node .mat-icon{color:rgba(0,0,0,.6);margin-right:17px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.qmslib__related__popup__container .qmslib-related-popup-splitview .expand-node .mat-icon svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}cdk-virtual-scroll-viewport{overflow-x:hidden}cdk-virtual-scroll-viewport .search__module-result{margin:1.5rem;padding:0 0 .5rem}cdk-virtual-scroll-viewport .search__module-result .search__module-title{font-size:14px;font-weight:600}cdk-virtual-scroll-viewport .search__module-result .search__option{height:auto;line-height:normal;padding:8px 0;border-bottom:1px solid #e0e0e0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item.mat-2-line.image-item{height:auto}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content{margin:0;border-bottom:none}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square{width:2.5rem;height:100%;background:transparent;align-self:center;margin-right:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square img{width:24px;height:24px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .material-icons-outlined.leading-icon,cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content mat-icon.leading-icon{padding:4px 0 4px 4px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .subtitle{font-weight:400}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption{overflow:hidden;line-height:normal;white-space:normal;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:0;margin:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption span.search__result__parent-name{display:inline-block;width:auto;width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .default-subtitle{color:rgba(0,0,0,.38)}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .search__description-icon{margin-right:0;width:12px;height:12px;font-size:12px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .qms-list-text{border-bottom:none}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .breadcrumb-containe .qms-breadcrumb-item .mat-icon{font-size:16px!important;padding-bottom:1px}cdk-virtual-scroll-viewport .search__module-result svg{display:block}#qmslib_related_popup_header_001{margin-bottom:20px;padding:0;font-weight:600;font-family:Raleway}.padding-5{padding:5px}.mat-autocomplete_related-viewport{height:100%;max-height:100%!important}.mat-autocomplete_related-viewport .cdk-virtual-scroll-content-wrapper{width:100%}.mat-autocomplete_related-viewport .related-viewport{min-height:300px}"]
|
21215
21566
|
},] }
|
21216
21567
|
];
|
21217
21568
|
SelectProcessDocumentPopupComponent.ctorParameters = function () { return [
|
@@ -21290,6 +21641,7 @@
|
|
21290
21641
|
this.addFavoriteTooltip = 'Legg til favoritt';
|
21291
21642
|
this.deleteFavoriteTooltip = 'Slett favoritt';
|
21292
21643
|
this.addNodeTooltip = 'Legg til lokasjon';
|
21644
|
+
this.activeNode = '';
|
21293
21645
|
this.expandedNodeSet = new Set();
|
21294
21646
|
this.dragging = false;
|
21295
21647
|
this.expandDelay = 1000;
|
@@ -21299,7 +21651,6 @@
|
|
21299
21651
|
this.dataSource = new tree$1.MatTreeFlatDataSource(this.treeControl, this.treeFlattener);
|
21300
21652
|
this.hoverNode = {};
|
21301
21653
|
this.expandingNodes = [];
|
21302
|
-
this.activeNode = '';
|
21303
21654
|
this.hasChild = function (_, node) { return node.expandable; };
|
21304
21655
|
this.dataSource.data = this.treeData;
|
21305
21656
|
}
|
@@ -21343,9 +21694,12 @@
|
|
21343
21694
|
}
|
21344
21695
|
});
|
21345
21696
|
};
|
21346
|
-
QMSNavigationDrawerComponent.prototype.onClickNode = function (
|
21347
|
-
|
21348
|
-
|
21697
|
+
QMSNavigationDrawerComponent.prototype.onClickNode = function (node, setActiveNode) {
|
21698
|
+
if (setActiveNode) {
|
21699
|
+
this.activeNode = node.id;
|
21700
|
+
this.onClickNodeEvent.emit(node.id);
|
21701
|
+
}
|
21702
|
+
this.onClickToggleNode(node);
|
21349
21703
|
};
|
21350
21704
|
QMSNavigationDrawerComponent.prototype.onOver = function (node) {
|
21351
21705
|
this.hoverNode = node;
|
@@ -21606,8 +21960,8 @@
|
|
21606
21960
|
QMSNavigationDrawerComponent.decorators = [
|
21607
21961
|
{ type: i0.Component, args: [{
|
21608
21962
|
selector: 'app-qms-navigation-drawer',
|
21609
|
-
template: "<mat-tree class=\"qms-navigation-drawer-container\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" cdkDropList\r\n (cdkDropListDropped)=\"drop($event)\" [cdkDropListDisabled]=\"dragDropListDisabled\">\r\n <!-- This is the tree node template for leaf nodes -->\r\n <mat-tree-node *matTreeNodeDef=\"let node\" (mouseover)=\"onOver(node)\" matTreeNodePadding matTreeNodePaddingIndent=\"34\"\r\n cdkDrag [cdkDragData]=\"node\" (mouseenter)=\"dragHover(node)\" (mouseleave)=\"dragHoverEnd()\"\r\n (cdkDragStarted)=\"dragStart()\" (cdkDragReleased)=\"dragEnd()\"\r\n [ngClass]=\"{'expand-node' : treeControl.isExpanded(node), 'collapse-node': !treeControl.isExpanded(node), 'active': activeNode == node.id}\">\r\n <div *ngIf=\"!node.isReadOnly\" (click)=\"onClickNode(node
|
21610
|
-
styles: ["::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node{width:272px!important;height:48px!important}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node{min-height:34px;margin:16px 0;padding-right:34px}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.active{background-color:#f2f7fd}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content{width:100%;position:relative;cursor:pointer}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .arrow-icon{color:#00324e}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .collapse-expand-icon{color:#3e57b7}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .collapse-expand-icon:hover{background:rgba(0,0,0,.08)}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .add-icon
|
21963
|
+
template: "\r\n<mat-tree class=\"qms-navigation-drawer-container\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" cdkDropList\r\n (cdkDropListDropped)=\"drop($event)\" [cdkDropListDisabled]=\"dragDropListDisabled\">\r\n <!-- This is the tree node template for leaf nodes -->\r\n <mat-tree-node *matTreeNodeDef=\"let node\" (mouseover)=\"onOver(node)\" matTreeNodePadding matTreeNodePaddingIndent=\"34\"\r\n cdkDrag [cdkDragData]=\"node\" (mouseenter)=\"dragHover(node)\" (mouseleave)=\"dragHoverEnd()\"\r\n (cdkDragStarted)=\"dragStart()\" (cdkDragReleased)=\"dragEnd()\"\r\n [ngClass]=\"{'expand-node' : treeControl.isExpanded(node), 'collapse-node': !treeControl.isExpanded(node), 'active': activeNode == node.id}\">\r\n <div *cdkDragPreview class=\"node-preview-item\">{{ node.name }}</div>\r\n <div *ngIf=\"!node.isReadOnly\" (click)=\"onClickNode(node, true)\" class=\"tree-content\">\r\n <button tabindex=\"-1\" qms-btn-outlined disabled class=\"border-0 bg-transparent\">\r\n <img class=\"img-icon\" [src]=\"faIconPath\" alt=\"\" />\r\n </button>\r\n <div class=\"span-text\">{{ node.name }}</div>\r\n <button tabindex=\"-1\" class=\"button-icon add-icon\"\r\n *ngIf=\"showFavoriteIcon && (node.id === hoverNode.id || node.favorite)\"\r\n (click)=\"addFavoriteNode(node.id, $event)\" (mouseenter)=\"setHoverFavorite(node.id)\"\r\n (mouseleave)=\"setHoverFavorite(null)\" [ngClass]=\"{'btn-favorite': (node.id === hoverNode.id && isHover)}\"\r\n qms-tool-tip=\"{{!node.favorite ? addFavoriteTooltip : deleteFavoriteTooltip}}\" mode=\"dark\" position=\"bottom\"\r\n qms-btn-icon>\r\n <mat-icon class=\"mat-icon-rtl-mirror blur-icon\" [class.favorite]=\"true\"\r\n [class.not-favorite]=\"!node.favorite && node.id === hoverNode.id && isHover\">\r\n {{node.favorite && node.id === hoverNode.id && isHover ? 'star_rate_outline' : ''}}\r\n {{!node.favorite && node.id === hoverNode.id && isHover ? 'star_border' : ''}}\r\n </mat-icon>\r\n </button>\r\n <button tabindex=\"-1\" class=\"button-icon add-icon\" *ngIf=\"node.id === hoverNode.id && isHover\"\r\n qms-tool-tip=\"{{addNodeTooltip}}\" (click)=\"addNewNode(node.id, $event)\" mode=\"dark\" position=\"bottom\" qms-btn-icon>\r\n <mat-icon class=\"mat-icon-rtl-mirror\">\r\n add\r\n </mat-icon>\r\n </button>\r\n </div>\r\n </mat-tree-node>\r\n <!-- This is the tree node template for expandable nodes -->\r\n <mat-tree-node *matTreeNodeDef=\"let node;when: hasChild\" (mouseover)=\"onOver(node)\" matTreeNodePadding\r\n matTreeNodePaddingIndent=\"34\" cdkDrag [cdkDragData]=\"node\" (mouseenter)=\"dragHover(node)\"\r\n (mouseleave)=\"dragHoverEnd()\" (cdkDragStarted)=\"dragStart()\" (cdkDragReleased)=\"dragEnd()\"\r\n [ngClass]=\"\r\n {'expand-node' : treeControl.isExpanded(node), 'collapse-node': !treeControl.isExpanded(node), 'active': activeNode == node.id}\">\r\n <div *cdkDragPreview class=\"node-preview-item\">{{ node.name }}</div>\r\n <div *ngIf=\"!node.isReadOnly\" class=\"tree-content\"\r\n (keydown)=\"onKeyDownNode($event, node)\">\r\n <button matTreeNodeToggle (click)=\"onClickNode(node, false)\" tabindex=\"-1\" class=\"button-icon collapse-expand-icon\" qms-btn-icon [attr.aria-label]=\"'toggle ' + node.name\">\r\n <mat-icon class=\"mat-icon-rtl-mirror arrow-icon left-icon\">\r\n {{treeControl.isExpanded(node) ? 'expand_less' : 'expand_more'}}\r\n </mat-icon>\r\n </button>\r\n <div class=\"span-text\" matTreeNodeToggle (click)=\"onClickNode(node, true)\">{{ node.name }}</div>\r\n <button tabindex=\"-1\" class=\"button-icon add-icon\"\r\n qms-tool-tip=\"{{!node.favorite ? addFavoriteTooltip : deleteFavoriteTooltip}}\"\r\n *ngIf=\"showFavoriteIcon && (node.id === hoverNode.id || node.favorite)\"\r\n (click)=\"addFavoriteNode(node.id, $event)\" [ngClass]=\"{'btn-favorite': (node.id === hoverNode.id && isHover)}\"\r\n (mouseenter)=\"setHoverFavorite(node.id)\" (mouseleave)=\"setHoverFavorite(null)\" mode=\"dark\" position=\"below\"\r\n qms-btn-icon>\r\n <mat-icon class=\"mat-icon-rtl-mirror blur-icon\" [class.favorite]=\"true\"\r\n [class.not-favorite]=\"!node.favorite && node.id === hoverNode.id && isHover\">\r\n {{node.favorite && node.id === hoverNode.id && isHover ? 'star_rate_outline' : ''}}\r\n {{!node.favorite && node.id === hoverNode.id && isHover ? 'star_border' : ''}}\r\n </mat-icon>\r\n </button>\r\n <button tabindex=\"-1\" class=\"button-icon add-icon\" *ngIf=\"node.id === hoverNode.id && isHover\"\r\n qms-tool-tip=\"{{addNodeTooltip}}\" mode=\"dark\" position=\"bottom\" (click)=\"addNewNode(node.id, $event)\" qms-btn-icon>\r\n <mat-icon class=\"mat-icon-rtl-mirror\">\r\n add\r\n </mat-icon>\r\n </button>\r\n </div>\r\n </mat-tree-node>\r\n</mat-tree>\r\n",
|
21964
|
+
styles: ["::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node{min-width:272px!important;height:48px!important}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node{min-height:34px;margin:16px 0;padding-right:34px}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.active{background-color:#f2f7fd;color:#1954a9!important}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.active img{filter:opacity(.5) drop-shadow(0 0 0 #1954A9)}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.active:hover{background-color:#e5eefb!important}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content{width:100%;position:relative;cursor:pointer;align-items:center}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .arrow-icon{color:#00324e}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .collapse-expand-icon{color:#3e57b7}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .collapse-expand-icon:hover{background:rgba(0,0,0,.08)}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .add-icon:hover{background:rgba(0,0,0,.08)}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .left-icon{color:#919191}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.expand-node{padding-left:0;position:static;height:32px;left:calc(50% - 216px/2);top:0;font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;display:flex;align-items:center;color:#1954a9;flex:none;order:0;align-self:stretch;flex-grow:1}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.expand-node ::ng-deep mat-icon{color:#1954a9}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.expand-node:hover{background-color:#e5eefb!important}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.collapse-node{position:static;height:32px;left:calc(50% - 176px/2);top:0;font-family:Open Sans;font-style:normal;font-weight:400;font-size:14px;line-height:19px;display:flex;align-items:center;color:#323232;flex:none;order:0;align-self:stretch;flex-grow:1}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content{display:flex}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .button-icon{width:40px;height:40px;line-height:30px!important;border-radius:50%}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .button-icon:hover{border-radius:50%}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .img-icon{max-height:25px;max-width:25px}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .add-icon{position:absolute;right:-34px}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .add-icon mat-icon{top:3px;right:3px;border-radius:50%;color:rgba(0,0,0,.6)}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .favorite{color:#b13514!important}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .not-favorite{color:rgba(0,0,0,.6)!important}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .btn-favorite{right:6px;color:unset}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .space-icon{position:absolute;top:-5px;left:0}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .span-text{position:relative;overflow:hidden;text-overflow:ellipsis;padding-left:7px;max-width:calc(100% - 56px);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node .tree-content .span-text:after{content:\"\";display:block;clear:both}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node:first-child{margin:0}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.collapse-node:hover{background:#00000014}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.collapse-node:active{background:#0000001f}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node.expand-node:active{background:#f2f7fd}::ng-deep mat-tree.qms-navigation-drawer-container .mat-tree-node:hover .span-text{max-width:calc(100% - 96px)}.node-preview-item{display:flex;background-color:#0000001f;min-width:272px!important;height:48px!important;margin:0 auto;align-items:center;padding:0 16px}"]
|
21611
21965
|
},] }
|
21612
21966
|
];
|
21613
21967
|
QMSNavigationDrawerComponent.ctorParameters = function () { return []; };
|
@@ -21627,7 +21981,8 @@
|
|
21627
21981
|
onClickNodeEvent: [{ type: i0.Output }],
|
21628
21982
|
addFavoriteTooltip: [{ type: i0.Input }],
|
21629
21983
|
deleteFavoriteTooltip: [{ type: i0.Input }],
|
21630
|
-
addNodeTooltip: [{ type: i0.Input }]
|
21984
|
+
addNodeTooltip: [{ type: i0.Input }],
|
21985
|
+
activeNode: [{ type: i0.Input }]
|
21631
21986
|
};
|
21632
21987
|
|
21633
21988
|
var QMSNavigationDrawerModule = /** @class */ (function () {
|
@@ -21644,11 +21999,11 @@
|
|
21644
21999
|
common.CommonModule,
|
21645
22000
|
icon.MatIconModule,
|
21646
22001
|
toolbar.MatToolbarModule,
|
21647
|
-
button.MatButtonModule,
|
21648
22002
|
QMSButtonModule,
|
21649
22003
|
tooltip.MatTooltipModule,
|
21650
22004
|
dragDrop.DragDropModule,
|
21651
|
-
tree$1.MatTreeModule
|
22005
|
+
tree$1.MatTreeModule,
|
22006
|
+
QmsAngularModule
|
21652
22007
|
],
|
21653
22008
|
exports: [
|
21654
22009
|
QMSNavigationDrawerComponent
|
@@ -21707,6 +22062,7 @@
|
|
21707
22062
|
},
|
21708
22063
|
set: function (value) {
|
21709
22064
|
this._length = coercion.coerceNumberProperty(value);
|
22065
|
+
this.getNumberOfPages();
|
21710
22066
|
},
|
21711
22067
|
enumerable: false,
|
21712
22068
|
configurable: true
|
@@ -21720,6 +22076,7 @@
|
|
21720
22076
|
this._pageIndex = Math.max(coercion.coerceNumberProperty(value - 1), 0);
|
21721
22077
|
this.displayNumberOfPages = this.pagination(this._pageIndex, this.numberOfPages.length);
|
21722
22078
|
this._emitPageEvent(this.previousPageIndex);
|
22079
|
+
this.getNumberOfPages();
|
21723
22080
|
},
|
21724
22081
|
enumerable: false,
|
21725
22082
|
configurable: true
|
@@ -21838,11 +22195,11 @@
|
|
21838
22195
|
QMSPaginatorComponent.decorators = [
|
21839
22196
|
{ type: i0.Component, args: [{
|
21840
22197
|
selector: 'qms-paginator',
|
21841
|
-
template: "<div class=\"qms-paginator-outer-container\" [class.size-small]='size == sizeSmall'>\r\n <div class=\"mat-paginator-container\" *ngIf='size != sizeMobile'>\r\n <div class=\"qms-total-result\">\r\n <span>Resultater: {{length}}</span>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeSmall'>\r\n <div class=\"qms-pagesize-label\">Rader per side:</div>\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageSize\"\r\n (selectionChange)=\"_changePageSize($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of pageSizeOptions\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeMedium && size != sizeSmall'>\r\n <div class=\"qms-pagesize-label \">Hopp til side:</div>\r\n\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageIndex\"\r\n (selectionChange)=\"_changePageNumber($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of numberOfPages\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field> \r\n </div>\r\n <div class=\"qms-paginator-range-actions\">\r\n <button qms-btn-icon color=\"light\" (click)='previousPage()' [disabled]='minPage == pageIndex'>\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n <ng-container *ngFor='let item of displayNumberOfPages' >\r\n <span *ngIf='item == \"...\"' class=\"qms-3d\">{{item}}</span>\r\n <button *ngIf='item != \"...\"' qms-btn-icon color=\"light\"
|
22198
|
+
template: "<div class=\"qms-paginator-outer-container\" [class.size-small]='size == sizeSmall'>\r\n <div class=\"mat-paginator-container\" *ngIf='size != sizeMobile'>\r\n <div class=\"qms-total-result\">\r\n <span>Resultater: {{length}}</span>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeSmall'>\r\n <div class=\"qms-pagesize-label\">Rader per side:</div>\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageSize\"\r\n (selectionChange)=\"_changePageSize($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of pageSizeOptions\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeMedium && size != sizeSmall'>\r\n <div class=\"qms-pagesize-label \">Hopp til side:</div>\r\n\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size qms-form-select-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageIndex\"\r\n (selectionChange)=\"_changePageNumber($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of numberOfPages\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field> \r\n </div>\r\n <div class=\"qms-paginator-range-actions\">\r\n <button qms-btn-icon color=\"light\" (click)='previousPage()' [disabled]='minPage == pageIndex'>\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n <ng-container *ngFor='let item of displayNumberOfPages' >\r\n <span *ngIf='item == \"...\"' class=\"qms-3d\">{{item}}</span>\r\n <button *ngIf='item != \"...\"' qms-btn-icon color=\"light\" \r\n [class.selected]='pageIndex == item' [disabled]='pageIndex == item'\r\n (click)='changePage(item)'>\r\n {{item}}\r\n </button>\r\n </ng-container>\r\n \r\n <button qms-btn-icon color=\"light\" (click)='nextPage()' [disabled]='maxpage == pageIndex'>\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"mat-paginator-container-mobile\" *ngIf='size == sizeMobile'>\r\n <div class=\"mat-paginator-container\" *ngIf='size == sizeMobile'>\r\n <div class=\"qms-paginator-range-actions\">\r\n <button qms-btn-icon color=\"light\" (click)='previousPage()' [disabled]='minPage == pageIndex'>\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n <ng-container *ngFor='let item of displayNumberOfPages' >\r\n <span *ngIf='item == \"...\"' class=\"qms-3d\">{{item}}</span>\r\n <button *ngIf='item != \"...\"' qms-btn-icon color=\"light\" \r\n [class.selected]='pageIndex == item' [disabled]='pageIndex == item'\r\n (click)='changePage(item)'>\r\n {{item}}\r\n </button>\r\n </ng-container>\r\n \r\n <button qms-btn-icon color=\"light\" (click)='nextPage()' [disabled]='maxpage == pageIndex'>\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"qms-total-result\">\r\n <span>Resultater: {{length}}</span>\r\n </div>\r\n <div style=\"display: flex;\">\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeSmall'>\r\n <div class=\"qms-pagesize-label\">Rader per side:</div>\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageSize\"\r\n (selectionChange)=\"_changePageSize($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of pageSizeOptions\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeMedium && size != sizeSmall'>\r\n <div class=\"qms-pagesize-label \">Hopp til side:</div>\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size qms-form-select-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageIndex\"\r\n (selectionChange)=\"_changePageNumber($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of numberOfPages\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field> \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n</div>",
|
21842
22199
|
host: {
|
21843
22200
|
'class': 'qms-paginator'
|
21844
22201
|
},
|
21845
|
-
styles: ["::ng-deep .qms-paginator{display:block}::ng-deep .qms-paginator .qms-paginator-outer-container{display:flex}::ng-deep .qms-paginator .mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}::ng-deep .qms-paginator .mat-paginator-container .qms-total-result{margin-right:24px;margin-bottom:
|
22202
|
+
styles: ["::ng-deep .qms-paginator{display:block}::ng-deep .qms-paginator .qms-paginator-outer-container{display:flex}::ng-deep .qms-paginator .mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}::ng-deep .qms-paginator .mat-paginator-container .qms-btn-icon{width:40px;height:40px;line-height:40px}::ng-deep .qms-paginator .mat-paginator-container .mat-select .mat-select-arrow{margin-top:20px}::ng-deep .qms-paginator .mat-paginator-container .qms-total-result{margin-right:24px;margin-bottom:20px}::ng-deep .qms-paginator .mat-paginator-container .qms-total-result span{font-family:Open Sans;font-weight:400;font-size:14px;line-height:22px;color:rgba(0,0,0,.6)}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size{margin-right:24px;display:flex;align-items:baseline}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .qms-pagesize-label{font-weight:400;font-size:14px;line-height:22px;color:#323232;font-family:Open Sans;font-style:normal;margin-right:8px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .qms-form-page-size .mat-form-field-flex{width:80px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .qms-form-select-page-size .mat-form-field-flex{width:51px;padding-left:9px;padding-right:5px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .jump-page .mat-form-field-wrapper .mat-form-field-flex{width:55px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .mat-form-field-flex{height:40px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .mat-form-field-flex .mat-form-field-infix{padding-top:4px;border-top:0;padding-bottom:0;height:25px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions{display:flex;align-items:center;margin-bottom:15px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions .selected{background-color:#e5eefb;color:#1954a9}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions .qms-3d{font-weight:600;font-size:14px;line-height:22px;color:#323232}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions button:not(.qms-btn-disabled) .qms-btn-icon-wrapper{color:#323232}::ng-deep .qms-paginator .mat-paginator-container-mobile .mat-select .mat-select-arrow{margin-top:20px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-total-result{margin-bottom:16px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-total-result span{font-family:Open Sans;font-style:normal;font-weight:400;font-size:12px;line-height:16px;color:rgba(0,0,0,.6)}::ng-deep .qms-paginator .mat-paginator-container-mobile .mat-paginator-container{justify-content:flex-start}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size{margin-right:24px;display:flex;align-items:baseline}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .qms-pagesize-label{font-weight:400;font-size:12px;line-height:22px;color:#323232;font-family:Open Sans;font-style:normal;margin-right:8px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .qms-form-page-size .mat-form-field-flex{width:80px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .qms-form-select-page-size .mat-form-field-flex{width:51px;padding-left:9px;padding-right:5px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .jump-page .mat-form-field-wrapper .mat-form-field-flex{width:55px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .mat-form-field-flex{height:40px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .mat-form-field-flex .mat-form-field-infix{padding-top:4px;border-top:0;padding-bottom:0;height:25px}::ng-deep .qms-paginator .size-small .mat-paginator-container{justify-content:flex-start}"]
|
21846
22203
|
},] }
|
21847
22204
|
];
|
21848
22205
|
QMSPaginatorComponent.ctorParameters = function () { return []; };
|
@@ -22024,7 +22381,6 @@
|
|
22024
22381
|
exports.QMSRichText = QMSRichText;
|
22025
22382
|
exports.QMSRichTextModule = QMSRichTextModule;
|
22026
22383
|
exports.QMSRowDetailDirective = QMSRowDetailDirective;
|
22027
|
-
exports.QMSRowExpandDirective = QMSRowExpandDirective;
|
22028
22384
|
exports.QMSScrolableAttachmentListDirective = QMSScrolableAttachmentListDirective;
|
22029
22385
|
exports.QMSScrollbarDirective = QMSScrollbarDirective;
|
22030
22386
|
exports.QMSSearchFieldDirective = QMSSearchFieldDirective;
|
@@ -22034,6 +22390,7 @@
|
|
22034
22390
|
exports.QMSSelectOneModule = QMSSelectOneModule;
|
22035
22391
|
exports.QMSSelectProcessDocumentGlobalService = QMSSelectProcessDocumentGlobalService;
|
22036
22392
|
exports.QMSSelectProcessDocumentModule = QMSSelectProcessDocumentModule;
|
22393
|
+
exports.QMSSideSheetModule = QMSSideSheetModule;
|
22037
22394
|
exports.QMSSnackbarConfig = QMSSnackbarConfig;
|
22038
22395
|
exports.QMSSuffixDirective = QMSSuffixDirective;
|
22039
22396
|
exports.QMSSuffixFieldDirective = QMSSuffixFieldDirective;
|
@@ -22045,8 +22402,8 @@
|
|
22045
22402
|
exports.QMSTableActionBlock = QMSTableActionBlock;
|
22046
22403
|
exports.QMSTableChildrenDirective = QMSTableChildrenDirective;
|
22047
22404
|
exports.QMSTableDirective = QMSTableDirective;
|
22048
|
-
exports.QMSTableExpandDirective = QMSTableExpandDirective;
|
22049
22405
|
exports.QMSTableModule = QMSTableModule;
|
22406
|
+
exports.QMSTableRowDirective = QMSTableRowDirective;
|
22050
22407
|
exports.QMSTextBlockDirective = QMSTextBlockDirective;
|
22051
22408
|
exports.QMSTextBlockLine = QMSTextBlockLine;
|
22052
22409
|
exports.QMSToolTipComponent = QMSToolTipComponent;
|
@@ -22128,14 +22485,16 @@
|
|
22128
22485
|
exports.requiredFileType = requiredFileType;
|
22129
22486
|
exports.ɵ1 = ɵ1;
|
22130
22487
|
exports.ɵa = SharedMaterialModule;
|
22131
|
-
exports.ɵb =
|
22132
|
-
exports.ɵc =
|
22488
|
+
exports.ɵb = QMSCKEditorTreeService;
|
22489
|
+
exports.ɵc = QMSCKEditorTemplateComponent;
|
22133
22490
|
exports.ɵd = LinkAttachmentComponent;
|
22134
22491
|
exports.ɵe = QMSCKEditorTooltipComponent;
|
22135
22492
|
exports.ɵf = QMSCKEditorTooltip;
|
22136
22493
|
exports.ɵg = QMSCKEditorImageMapComponent;
|
22137
22494
|
exports.ɵh = QMSCKEditorImageMap;
|
22138
|
-
exports.ɵi =
|
22495
|
+
exports.ɵi = QMSCKEditorUploadService;
|
22496
|
+
exports.ɵj = QMSCKEditorBpmnData;
|
22497
|
+
exports.ɵk = QMSCKEditorAboutComponent;
|
22139
22498
|
|
22140
22499
|
Object.defineProperty(exports, '__esModule', { value: true });
|
22141
22500
|
|