qms-angular 1.1.41 → 1.1.43
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/qms-angular.umd.js +1569 -441
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/common/enum/data-type.enum.js +2 -1
- package/esm2015/lib/common/enum/process-classification.enum.js +6 -0
- package/esm2015/lib/common/qms-icon.const.js +116 -111
- package/esm2015/lib/common/themes.const.js +2 -2
- package/esm2015/lib/components/app-icon/icon-registry.service.js +5 -2
- package/esm2015/lib/components/related/common/video.const.js +3 -1
- package/esm2015/lib/components/related/content/related-content.component.js +2 -2
- package/esm2015/lib/components/related/list-other-related/list-related.component.js +5 -2
- package/esm2015/lib/components/related/model/popup-data.model.js +3 -1
- package/esm2015/lib/components/related/model/related-data.model.js +1 -1
- package/esm2015/lib/components/related/popup/related-popup.component.js +48 -32
- package/esm2015/lib/components/related/related.module.js +3 -2
- package/esm2015/lib/components/related/risk/analysis/analysis.component.js +2 -2
- package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +24 -4
- package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +5 -4
- package/esm2015/lib/components/select-one/select-one.component.js +2 -2
- package/esm2015/lib/components/select-process-document/select-process-document.component.js +15 -11
- package/esm2015/lib/components/tree/model/tree-config.model.js +1 -1
- package/esm2015/lib/components/tree/tree.component.js +12 -4
- package/esm2015/lib/components/treeNew/model/tree-node.model.js +1 -1
- package/esm2015/lib/components/treeNew/model/tree.model.js +1 -1
- package/esm2015/lib/components/treeNew/tree.component.js +8 -4
- package/esm2015/lib/components/treeNew/tree.function.js +8 -4
- package/esm2015/lib/model/en.js +86 -2
- package/esm2015/lib/model/no.js +87 -3
- package/esm2015/lib/model/sv.js +437 -0
- package/esm2015/lib/qms-ckeditor-components/common/functions/common.function.js +15 -14
- package/esm2015/lib/qms-ckeditor-components/common/functions/resource.function.js +207 -0
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-url.model.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.js +262 -29
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +102 -36
- package/esm2015/lib/qms-ckeditor-components/models/qms-ckeditor-imagemap.model.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/models/qms-ckeditor-video.model.js +16 -0
- package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +39 -118
- package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.js +10 -3
- package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.js +7 -3
- package/esm2015/lib/services/translation-registry.service.js +7 -5
- package/fesm2015/qms-angular.js +1603 -503
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/common/enum/data-type.enum.d.ts +2 -1
- package/lib/common/enum/process-classification.enum.d.ts +4 -0
- package/lib/common/qms-icon.const.d.ts +1 -0
- package/lib/components/app-icon/icon-registry.service.d.ts +1 -0
- package/lib/components/related/common/video.const.d.ts +2 -0
- package/lib/components/related/content/related-content.component.d.ts +1 -1
- package/lib/components/related/list-other-related/list-related.component.d.ts +2 -2
- package/lib/components/related/model/popup-data.model.d.ts +3 -0
- package/lib/components/related/model/related-data.model.d.ts +1 -0
- package/lib/components/related/popup/related-popup.component.d.ts +7 -3
- package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +3 -2
- package/lib/components/select-one/select-one.component.d.ts +1 -1
- package/lib/components/select-process-document/select-process-document.component.d.ts +5 -6
- package/lib/components/tree/model/tree-config.model.d.ts +1 -1
- package/lib/components/tree/tree.component.d.ts +1 -1
- package/lib/components/treeNew/model/tree-node.model.d.ts +1 -0
- package/lib/components/treeNew/model/tree.model.d.ts +1 -0
- package/lib/components/treeNew/tree.component.d.ts +5 -2
- package/lib/model/en.d.ts +84 -0
- package/lib/model/no.d.ts +84 -0
- package/lib/model/sv.d.ts +436 -0
- package/lib/qms-ckeditor-components/common/functions/common.function.d.ts +29 -10
- package/lib/qms-ckeditor-components/common/functions/resource.function.d.ts +194 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.d.ts +3 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-url.model.d.ts +2 -0
- package/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.d.ts +13 -2
- package/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.d.ts +1 -0
- package/lib/qms-ckeditor-components/models/qms-ckeditor-imagemap.model.d.ts +1 -0
- package/lib/qms-ckeditor-components/models/qms-ckeditor-video.model.d.ts +10 -0
- package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +1 -2
- package/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.d.ts +2 -1
- package/lib/services/translation-registry.service.d.ts +1 -0
- package/package.json +1 -1
- package/qms-angular.metadata.json +1 -1
- package/src/assets/jointjs/scss/bpmn.scss +914 -906
- 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/no.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/findandreplaceui.js +223 -223
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/no.po +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/fullscreen/qmsCKEditorFullscreenPlugin.js +52 -50
- package/src/assets/qms-ckeditor-plugin/src/plugins/heading/headingui.js +115 -115
- package/src/assets/qms-ckeditor-plugin/src/plugins/heading/utils.js +42 -42
- package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkcommand.js +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/media/mediaembedediting.js +281 -283
- package/src/assets/qms-ckeditor-plugin/src/plugins/media/theme/mediaembed.css +30 -30
- package/src/assets/qms-ckeditor-plugin/src/plugins/media/theme/mediaembedediting.css +57 -57
- package/src/assets/qms-ckeditor-plugin/src/plugins/table/theme/snippet.css +3877 -3876
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/theme/video.css +17 -17
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/theme/videoresize.css +33 -32
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/video/videoediting.js +81 -75
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoresize/resizevideocommand.js +35 -35
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoresize/videoresizeediting.js +104 -92
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/browsevideodialogcommand.js +69 -25
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/uploadvideocommand.js +21 -21
- package/src/lib/components/related/popup/related-popup.component.scss +374 -350
- package/esm2015/lib/components/related/common/data-type.enum.js +0 -14
- package/esm2015/lib/components/select-one/common/data-type.enum.js +0 -14
- package/lib/components/related/common/data-type.enum.d.ts +0 -12
- package/lib/components/select-one/common/data-type.enum.d.ts +0 -12
package/fesm2015/qms-angular.js
CHANGED
@@ -44,6 +44,7 @@ import * as $$1 from 'jquery';
|
|
44
44
|
import * as _ from 'lodash';
|
45
45
|
import { memoize } from 'lodash';
|
46
46
|
import { Buffer } from 'buffer';
|
47
|
+
import { forkJoin as forkJoin$1 } from 'rxjs/internal/observable/forkJoin';
|
47
48
|
import * as dagre from 'dagre';
|
48
49
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
49
50
|
import { MatTabsModule } from '@angular/material/tabs';
|
@@ -142,6 +143,8 @@ const en = {
|
|
142
143
|
"TOOLTIP_INCLUDE_SUB_ITEM": "{0} - include {1} sub-items",
|
143
144
|
"NO_RESULT": "No Result",
|
144
145
|
"ITEM_NOT_MATCH_TO_TREE": "This item not match the tree",
|
146
|
+
"WIDTH": "Width",
|
147
|
+
"HEIGHT": "Height",
|
145
148
|
"ERROR": {
|
146
149
|
"SELECT_DANGER": "You must select one or more events"
|
147
150
|
},
|
@@ -283,6 +286,87 @@ const en = {
|
|
283
286
|
"CREATE_TABLE_OF_CONTENTS": "Create Table of Contents",
|
284
287
|
"SOURCE": "Source",
|
285
288
|
"TOGGLE_TOOLBAR": "Toggle toolbar",
|
289
|
+
"VIDEO_SOURCE": "Video source",
|
290
|
+
"VIDEO_IMAGE": "Video image",
|
291
|
+
"PARAGRAPH": "Paragraph",
|
292
|
+
"HEADING_NUMBER": "Heading %0",
|
293
|
+
"CHOOSE_HEADING": "Choose heading",
|
294
|
+
"RESIZE_MEDIA": "Resize media",
|
295
|
+
"ORIGINAL": "Original",
|
296
|
+
"LINK_IMAGE": "Link image",
|
297
|
+
"EDIT_LINK": "Edit link",
|
298
|
+
"THIS_LINK_HAS_NO_URL": "This link has no URL",
|
299
|
+
"IMAGE_MAP": "Image Map",
|
300
|
+
"FULL_SIZE_MEDIA": "Full size media",
|
301
|
+
"SIDE_MEDIA": "Side media",
|
302
|
+
"LEFT_ALIGNED_MEDIA": "Left aligned media",
|
303
|
+
"CENTERED_MEDIA": "Centered media",
|
304
|
+
"RIGHT_ALIGNED_MEDIA": "Right aligned media",
|
305
|
+
"PASTE_THE_MEDIA_URL_IN_THE_INPUT": "Paste the media URL in the input.",
|
306
|
+
"MEDIA_TIP": "Tip: Paste the URL into the content to embed faster.",
|
307
|
+
"FULL_SIZE_VIDEO": "Full size video",
|
308
|
+
"LEFT_ALIGNED_VIDEO": "Left aligned video",
|
309
|
+
"CENTERED_VIDEO": "Centered video",
|
310
|
+
"RIGHT_ALIGNED_VIDEO": "Right aligned video",
|
311
|
+
"ANCHOR_NAME": "Anchor name",
|
312
|
+
"FIND_IN_TEXT": "Find in text…",
|
313
|
+
"MATCH_CASE": "Match case",
|
314
|
+
"WHOLE_WORDS_ONLY": "Whole words only",
|
315
|
+
"FIND": "Find",
|
316
|
+
"REPLACE_WITH": "Replace with…",
|
317
|
+
"REPLACE_ALL": "Replace all",
|
318
|
+
"REPLACE": "Replace",
|
319
|
+
"COLUMN": "Column",
|
320
|
+
"HEADER_COLUMN": "Header column",
|
321
|
+
"INSERT_COLUMN_LEFT": "Insert column left",
|
322
|
+
"INSERT_COLUMN_RIGHT": "Insert column right",
|
323
|
+
"DELETE_COLUMN": "Delete column",
|
324
|
+
"SELECT_COLUMN": "Select column",
|
325
|
+
"ROW": "Row",
|
326
|
+
"HEADER_ROW": "Header row",
|
327
|
+
"INSERT_ROW_ABOVE": "Insert row above",
|
328
|
+
"INSERT_ROW_BELOW": "Insert row below",
|
329
|
+
"DELETE_ROW": "Delete row",
|
330
|
+
"SELECT_ROW": "Select row",
|
331
|
+
"MERGE_CELLS": "Merge cells",
|
332
|
+
"MERGE_CELL_UP": "Merge cell up",
|
333
|
+
"MERGE_CELL_RIGHT": "Merge cell right",
|
334
|
+
"MERGE_CELL_DOWN": "Merge cell down",
|
335
|
+
"MERGE_CELL_LEFT": "Merge cell left",
|
336
|
+
"SPLIT_CELL_VERTICALLY": "Split cell vertically",
|
337
|
+
"SPLIT_CELL_HORIZONTALLY": "Split cell horizontally",
|
338
|
+
"TABLE_PROPERTIES": "Table properties",
|
339
|
+
"BORDER": "Border",
|
340
|
+
"STYLE": "Style",
|
341
|
+
"NONE": "None",
|
342
|
+
"SOLID": "Solid",
|
343
|
+
"DOTTED": "Dotted",
|
344
|
+
"DASHED": "Dashed",
|
345
|
+
"DOUBLE": "Double",
|
346
|
+
"GROOVE": "Groove",
|
347
|
+
"RIDGE": "Ridge",
|
348
|
+
"INSET": "Inset",
|
349
|
+
"OUTSET": "Outset",
|
350
|
+
"COLOR": "Color",
|
351
|
+
"COLOR_PICKER": "Color picker",
|
352
|
+
"WIDTH": "Width",
|
353
|
+
"HEIGHT": "Height",
|
354
|
+
"BACKGROUND": "Background",
|
355
|
+
"DIMENSION": "Dimensions",
|
356
|
+
"ALIGNMENT": "Alignment",
|
357
|
+
"ALIGN_TABLE_LEFT": "Align table to the left",
|
358
|
+
"CENTER_TABLE": "Center table",
|
359
|
+
"ALIGN_TABLE_RIGHT": "Align table to the right",
|
360
|
+
"CELL_PROPERTIES": "Cell properties",
|
361
|
+
"PADDING": "Padding",
|
362
|
+
"TABLE_CELL_TEXT_ALIGNMENT": "Table cell text alignment",
|
363
|
+
"ALIGN_CELL_TEXT_LEFT": "Align cell text to the left",
|
364
|
+
"ALIGN_CELL_TEXT_CENTER": "Align cell text to the center",
|
365
|
+
"ALIGN_CELL_TEXT_RIGHT": "Align cell text to the right",
|
366
|
+
"JUSTIFY_CELL_TEXT": "Justify cell text",
|
367
|
+
"ALIGN_CELL_TEXT_TOP": "Align cell text to the top",
|
368
|
+
"ALIGN_CELL_TEXT_MIDDLE": "Align cell text to the middle",
|
369
|
+
"ALIGN_CELL_TEXT_BOTTOM": "Align cell text to the bottom",
|
286
370
|
},
|
287
371
|
"ABOUT": {
|
288
372
|
"ABOUT_CKEDITOR": "About CKEditor",
|
@@ -503,7 +587,8 @@ const en = {
|
|
503
587
|
"DELETE_TEMPLATE": "Delete template",
|
504
588
|
"SAVE_AS_TEMPLATE": "Save as template",
|
505
589
|
"RESET_TO_LAST_SAVE": "Reset to last saved"
|
506
|
-
}
|
590
|
+
},
|
591
|
+
"INTERCONNECTED_PROCESSES": "Interconnected Processes"
|
507
592
|
};
|
508
593
|
|
509
594
|
const no = {
|
@@ -579,6 +664,8 @@ const no = {
|
|
579
664
|
"TOOLTIP_INCLUDE_SUB_ITEM": "{0} - inkluderer {1} underelementer",
|
580
665
|
"NO_RESULT": "Inget resultat",
|
581
666
|
"ITEM_NOT_MATCH_TO_TREE": "Dette elementet samsvarer ikke med treet",
|
667
|
+
"WIDTH": "Bredde",
|
668
|
+
"HEIGHT": "Høyde",
|
582
669
|
"ERROR": {
|
583
670
|
"SELECT_DANGER": "Du må velge en eller flere hendelser"
|
584
671
|
},
|
@@ -709,7 +796,7 @@ const no = {
|
|
709
796
|
"INSERT_TABLE": "Tabell",
|
710
797
|
"ANCHOR": "Sett inn/Rediger anker",
|
711
798
|
"TOOLTIP": "Sett inn forklaring",
|
712
|
-
"TIMESTAMP": "
|
799
|
+
"TIMESTAMP": "Sett inn tidsstempel",
|
713
800
|
"ADD_TEMPLATE": "Opprett/Endre Innholdsmaler",
|
714
801
|
"TEMPLATES": "Innholdsmaler",
|
715
802
|
"REMOVE_FORMAT": "Fjern formatering",
|
@@ -720,6 +807,87 @@ const no = {
|
|
720
807
|
"CREATE_TABLE_OF_CONTENTS": "Lag innholdsfortegnelse",
|
721
808
|
"SOURCE": "Kilde",
|
722
809
|
"TOGGLE_TOOLBAR": "Bytt verktøylinje",
|
810
|
+
"VIDEO_SOURCE": "Videokilde",
|
811
|
+
"VIDEO_IMAGE": "Videobilde",
|
812
|
+
"PARAGRAPH": "Avsnitt",
|
813
|
+
"HEADING_NUMBER": "Overskrift %0",
|
814
|
+
"CHOOSE_HEADING": "Velg overskrift",
|
815
|
+
"RESIZE_MEDIA": "Endre størrelse på media",
|
816
|
+
"ORIGINAL": "Opprinnelig",
|
817
|
+
"LINK_IMAGE": "Link bilde",
|
818
|
+
"EDIT_LINK": "Rediger link",
|
819
|
+
"THIS_LINK_HAS_NO_URL": "Denne lenken har ingen URL",
|
820
|
+
"IMAGE_MAP": "Endre bildekart",
|
821
|
+
"FULL_SIZE_MEDIA": "Fullstørrelsesmedier",
|
822
|
+
"SIDE_MEDIA": "Sidemedier",
|
823
|
+
"LEFT_ALIGNED_MEDIA": "Venstrejustert media",
|
824
|
+
"CENTERED_MEDIA": "Sentrert media",
|
825
|
+
"RIGHT_ALIGNED_MEDIA": "Høyrejustert media",
|
826
|
+
"PASTE_THE_MEDIA_URL_IN_THE_INPUT": "Lim inn medie-URLen i inndataene.",
|
827
|
+
"MEDIA_TIP": "Tips: Lim inn URL-en i innholdet for å bygge inn raskere.",
|
828
|
+
"FULL_SIZE_VIDEO": "Full størrelse video",
|
829
|
+
"LEFT_ALIGNED_VIDEO": "Venstrejustert video",
|
830
|
+
"CENTERED_VIDEO": "Sentrert video",
|
831
|
+
"RIGHT_ALIGNED_VIDEO": "Høyrejustert video",
|
832
|
+
"ANCHOR_NAME": "Ankernavn",
|
833
|
+
"FIND_IN_TEXT": "Finn i tekst...",
|
834
|
+
"MATCH_CASE": "Matchetui",
|
835
|
+
"WHOLE_WORDS_ONLY": "Kun hele ord",
|
836
|
+
"FIND": "Finne",
|
837
|
+
"REPLACE_WITH": "Erstatt med…",
|
838
|
+
"REPLACE_ALL": "Bytt ut alle",
|
839
|
+
"REPLACE": "Erstatte",
|
840
|
+
"COLUMN": "Kolonner",
|
841
|
+
"HEADER_COLUMN": "Første kolonne",
|
842
|
+
"INSERT_COLUMN_LEFT": "Sett inn kolonne før",
|
843
|
+
"INSERT_COLUMN_RIGHT": "Sett inn kolonne etter",
|
844
|
+
"DELETE_COLUMN": "Slett kolonner",
|
845
|
+
"SELECT_COLUMN": "Velg kolonne",
|
846
|
+
"ROW": "Rader",
|
847
|
+
"HEADER_ROW": "Første rad",
|
848
|
+
"INSERT_ROW_ABOVE": "Sett inn rad før",
|
849
|
+
"INSERT_ROW_BELOW": "Sett inn rad etter",
|
850
|
+
"DELETE_ROW": "Slett rader",
|
851
|
+
"SELECT_ROW": "Velg rad",
|
852
|
+
"MERGE_CELLS": "Slå sammen celler",
|
853
|
+
"MERGE_CELL_UP": "Slå sammen opp",
|
854
|
+
"MERGE_CELL_RIGHT": "Slå sammen høyre",
|
855
|
+
"MERGE_CELL_DOWN": "Slå sammen ned",
|
856
|
+
"MERGE_CELL_LEFT": "Slå sammen til venstre",
|
857
|
+
"SPLIT_CELL_VERTICALLY": "Del celle i høyden",
|
858
|
+
"SPLIT_CELL_HORIZONTALLY": "Del celle til siden",
|
859
|
+
"TABLE_PROPERTIES": "Egenskaper for tabell",
|
860
|
+
"BORDER": "Grense",
|
861
|
+
"STYLE": "Stil",
|
862
|
+
"NONE": "None",
|
863
|
+
"SOLID": "Solid",
|
864
|
+
"DOTTED": "Dotted",
|
865
|
+
"DASHED": "Dashed",
|
866
|
+
"DOUBLE": "Double",
|
867
|
+
"GROOVE": "Groove",
|
868
|
+
"RIDGE": "Ridge",
|
869
|
+
"INSET": "Inset",
|
870
|
+
"OUTSET": "Outset",
|
871
|
+
"COLOR": "Farge",
|
872
|
+
"COLOR_PICKER": "Fargevelger",
|
873
|
+
"WIDTH": "Bredde",
|
874
|
+
"HEIGHT": "Høyde",
|
875
|
+
"BACKGROUND": "Bakgrunn",
|
876
|
+
"DIMENSION": "Dimensjoner",
|
877
|
+
"ALIGNMENT": "Justering",
|
878
|
+
"ALIGN_TABLE_LEFT": "Juster tabellen til venstre",
|
879
|
+
"CENTER_TABLE": "Midtbord",
|
880
|
+
"ALIGN_TABLE_RIGHT": "Juster tabellen til høyre",
|
881
|
+
"CELL_PROPERTIES": "Egenskapene til cellen",
|
882
|
+
"PADDING": "Polstring",
|
883
|
+
"TABLE_CELL_TEXT_ALIGNMENT": "Justering av tabellcelletekst",
|
884
|
+
"ALIGN_CELL_TEXT_LEFT": "Juster celletekst til venstre",
|
885
|
+
"ALIGN_CELL_TEXT_CENTER": "Juster celleteksten til midten",
|
886
|
+
"ALIGN_CELL_TEXT_RIGHT": "Juster celleteksten til høyre",
|
887
|
+
"JUSTIFY_CELL_TEXT": "Begrunn celletekst",
|
888
|
+
"ALIGN_CELL_TEXT_TOP": "Juster celleteksten til toppen",
|
889
|
+
"ALIGN_CELL_TEXT_MIDDLE": "Juster celleteksten til midten",
|
890
|
+
"ALIGN_CELL_TEXT_BOTTOM": "Juster celleteksten til bunnen",
|
723
891
|
},
|
724
892
|
"ABOUT": {
|
725
893
|
"ABOUT_CKEDITOR": "Om CKEditor",
|
@@ -940,22 +1108,464 @@ const no = {
|
|
940
1108
|
"DELETE_TEMPLATE": "Slett mal",
|
941
1109
|
"SAVE_AS_TEMPLATE": "Lagre som mal",
|
942
1110
|
"RESET_TO_LAST_SAVE": "Forkast ulagrede endringer"
|
1111
|
+
},
|
1112
|
+
"INTERCONNECTED_PROCESSES": "Sammenkoblede Prosesser"
|
1113
|
+
};
|
1114
|
+
|
1115
|
+
const sv = {
|
1116
|
+
"RESULTS": "Resultat",
|
1117
|
+
"ROW_PER_PAGE": "Rader per sida",
|
1118
|
+
"JUM_TO_PAGE": "Hoppa åt sidan",
|
1119
|
+
"MY_COMPONENT": "Min komponent",
|
1120
|
+
"SAVE_BUTTON": "Spara",
|
1121
|
+
"CANCEL_BUTTON": "Annullera",
|
1122
|
+
"DELETE_MESSAGE_COMMENT": "Detta meddelande har raderats.",
|
1123
|
+
"REGRET": "Ångra",
|
1124
|
+
"EDIT": "Redigera",
|
1125
|
+
"DELETE": "Radera",
|
1126
|
+
"SAVE": "Spara",
|
1127
|
+
"CANCEL": "Annullera",
|
1128
|
+
"EDIT_FILE_NAME": "Redigera filnamn",
|
1129
|
+
"FILE_NAME": "Filnamn",
|
1130
|
+
"UPLOAD_LEAVE_WARNING": "Filerna du laddar upp kanske inte sparas",
|
1131
|
+
"SOME_FILES_WERE_NOT_ADDED": "Vissa filer lades inte till",
|
1132
|
+
"YOU_CAN_ONLY_ADD": "Du kan bara ladda upp",
|
1133
|
+
"SELECT": "Välj",
|
1134
|
+
"PROCESSES": "Processer",
|
1135
|
+
"DOCUMENTS": "Dokument",
|
1136
|
+
"DEVIATION": "Kategorier",
|
1137
|
+
"CHECKLIST": "Checklistor",
|
1138
|
+
"ASSESSMENT": "Analysera",
|
1139
|
+
"ADD": "Lägg till",
|
1140
|
+
"SEARCH": "Sök",
|
1141
|
+
"REGULAR_TITLE": "Vilka händelser vill du ha med i riskanalysen/riskerna?",
|
1142
|
+
"CAPTION_TITLE": "I orsaksanalyser läggs alla orsaker relaterade till händelsen automatiskt till.",
|
1143
|
+
"CAUSAL_ANALYZES": "Valda analyser",
|
1144
|
+
"FINISHED": "Färdiga",
|
1145
|
+
"PROCESS_ID": "ID",
|
1146
|
+
"DOCUMENT_ID": "ID",
|
1147
|
+
"PROCESS_AREA": "Processområden",
|
1148
|
+
"FOLDER": "mapp",
|
1149
|
+
"DEVIATION_TYPE": "Fall typ",
|
1150
|
+
"CHECKLIST_CATEGORY": "Kategorier",
|
1151
|
+
"EVENT": "Händelse",
|
1152
|
+
"AREA_OF_IMPACT": "Konsekvensområde",
|
1153
|
+
"RESULT": "Resultat",
|
1154
|
+
"NOT_ACCEPTED": "Inte accepterad",
|
1155
|
+
"MUST_BE_EVALUATED": "Måste övervägas",
|
1156
|
+
"ACCEPTED": "Accepterad",
|
1157
|
+
"ARCHIVED": "Arkiverad",
|
1158
|
+
"CAUSE": "Orsak",
|
1159
|
+
"PAGE": "Sida",
|
1160
|
+
"OF": "av",
|
1161
|
+
"REPORT_FOR": "Rapport för",
|
1162
|
+
"SELECTED": "Valgte",
|
1163
|
+
"CHOOSE_ALL": "välj alla",
|
1164
|
+
"BREADCRUMB": "Ströbröd",
|
1165
|
+
"NAVIGATE_TO": "Navigera till",
|
1166
|
+
"FILE_SIZE_LIMIT": "Filstorleksgräns",
|
1167
|
+
"SUPPORTED_EXTENSIONS": "Tillägg som stöds",
|
1168
|
+
"FILES_ARE_NOT_SUPPORTED": "Fil(er) stöds inte",
|
1169
|
+
"FILES_EXCEED_UPLOAD_LIMIT": "Fil(er) överskrider gränsen för uppladdningsstorlek",
|
1170
|
+
"SELECT_ACCESS": "Välj ansvariga personer",
|
1171
|
+
"PERSON": "Person",
|
1172
|
+
"USER_GROUP": "Användargrupp",
|
1173
|
+
"DEPARTMENT": "Avdelning",
|
1174
|
+
"ROLE": "Roll",
|
1175
|
+
"DEPARTMENT_UNIT": "Avdelning/enhet",
|
1176
|
+
"INCLUDE_SUB_DEPARTMENTS": "Inkludera automatiskt underavdelningar",
|
1177
|
+
"NAME": "namn",
|
1178
|
+
"SEARCH_USER_GROUP": "Sök användargrupp",
|
1179
|
+
"SEARCH_DEPARTMENT_UNIT": "Sökavdelning/enhet",
|
1180
|
+
"FILTER": "Använd filter",
|
1181
|
+
"TYPE": "Typ",
|
1182
|
+
"SEARCH_WITH_NAME": "Sök efter för- och efternamn",
|
1183
|
+
"RESULT_SEARCH_FOR": "Sök resultat efter",
|
1184
|
+
"TOOLTIP_INCLUDE_SUB_DEPARTMENT": "{0} – inkluderar {1} barn",
|
1185
|
+
"TOOLTIP_INCLUDE_SUB_ITEM": "{0} – innehåller {1} underelement",
|
1186
|
+
"NO_RESULT": "Inget resultat",
|
1187
|
+
"ITEM_NOT_MATCH_TO_TREE": "Denna artikel matchar inte trädet",
|
1188
|
+
"ERROR": {
|
1189
|
+
"SELECT_DANGER": "Du måste välja en eller flera händelser"
|
1190
|
+
},
|
1191
|
+
"MESSAGE": {
|
1192
|
+
"PROCESSES_IN": "Processer i",
|
1193
|
+
"DOCUMENTS_IN": "Dokument i"
|
1194
|
+
},
|
1195
|
+
"SELECT_INCLUDE_CHILD": "Select inkluderar barn",
|
1196
|
+
"BACK_TO_TREE": "Tillbaka till ett träd",
|
1197
|
+
"GOTO_SEACH_RESULT": "Gå till sökresultatet",
|
1198
|
+
"QMSCKEDITOR": {
|
1199
|
+
"ID": "ID",
|
1200
|
+
"INFORMATION": "Information",
|
1201
|
+
"REMOVE_MAP": "Ta bort kartan",
|
1202
|
+
"IMAGE_MAP_PROPERTIES": "Bildkarta egenskaper",
|
1203
|
+
"INSERT_TOOLTIP": "Sätt i en verktygsspets",
|
1204
|
+
"CONTENT": "Innehåll",
|
1205
|
+
"TEMPLATE": "Mall",
|
1206
|
+
"CONTENT_TEMPLATE": "Innehållsmall",
|
1207
|
+
"CREATE_NEW_TEMPLATE": "Skapa en ny mall",
|
1208
|
+
"UPDATE_TEMPLATE": "Uppdatera mall",
|
1209
|
+
"TITLE": "Titel",
|
1210
|
+
"DESCRIPTION": "Beskrivning",
|
1211
|
+
"SAVE": "Spara",
|
1212
|
+
"CHOOSE_TEMPLATE": "Välj mallen du vill öppna i editorn",
|
1213
|
+
"REPLACE_CONTENT": "Byt ut det faktiska innehållet",
|
1214
|
+
"SAVED": "Sparad",
|
1215
|
+
"SAVE_FAILED": "Sparningen misslyckades",
|
1216
|
+
"DELETE": "Radera",
|
1217
|
+
"DELETED": "raderade",
|
1218
|
+
"DELETE_FAILED": "Det gick inte att ta bort",
|
1219
|
+
"DELETE_TEMPLATE": "Ta bort mall",
|
1220
|
+
"CHANGE_TEMPLATE": "Ändra mall",
|
1221
|
+
"CANCEL": "Annullera",
|
1222
|
+
"LINK": "Infoga/redigera länk",
|
1223
|
+
"LINK_TYPE": "Kopplingstyp",
|
1224
|
+
"ZOOM": "Zoom",
|
1225
|
+
"LINK_URL": "URL",
|
1226
|
+
"LINK_ANCHOR_IN_TEXT": "Länk till ankare i texten",
|
1227
|
+
"LINK_EMAIL": "E-post",
|
1228
|
+
"LINK_ANCHOR_DOCUMENT": "Förankra i ett annat dokument",
|
1229
|
+
"TARGET": "Mål",
|
1230
|
+
"TARTGET_NEW": "Nytt fönster (_blank)",
|
1231
|
+
"TARGET_TOPMOST": "Det övre fönstret (_top)",
|
1232
|
+
"TARGET_SAME": "Samma fönster (själv)",
|
1233
|
+
"TARGET_PARENT": "Överordnat fönster (_förälder)",
|
1234
|
+
"PROTOCOL": "Protokoll",
|
1235
|
+
"PROTOCOL_HTTP": "http://",
|
1236
|
+
"PROTOCOL_HTTPS": "https://",
|
1237
|
+
"PROTOCOL_FTP": "ftp://",
|
1238
|
+
"PROTOCOL_NEW": "nyheter://",
|
1239
|
+
"PROTOCOL_OTHER": "<annat>",
|
1240
|
+
"ADVISORY_TITLE": "Rådgivande titel",
|
1241
|
+
"HANDBOOK": "e-handbok",
|
1242
|
+
"ATTACHMENT": "Vedlegg",
|
1243
|
+
"OK": "OK",
|
1244
|
+
"URL_HEADER": "URL-information",
|
1245
|
+
"ANCHOR_TEXT_HEADER": "Välj et anker",
|
1246
|
+
"ANCHOR_BY_NAME": "Anker ved namn",
|
1247
|
+
"EMAIL_HEADER": "E-postinformation",
|
1248
|
+
"EMAIL_ADDRESS": "Adress",
|
1249
|
+
"EMAIL_SUBJECT": "Emne",
|
1250
|
+
"EMAIL_BODY": "Kropp",
|
1251
|
+
"ANCHOR_ATTACHMENT": "Vedlegg",
|
1252
|
+
"ANCHOR_RELATED_DOCUMENT": "Relaterte dokument",
|
1253
|
+
"ADD_DOCUMENT_PROCESS": "Lägg till dokument / process",
|
1254
|
+
"ADD_DOCUMENT": "Lägg till dokument",
|
1255
|
+
"ADD": "Lägg till",
|
1256
|
+
"PROSESSER": "Processer",
|
1257
|
+
"DOCUMENTS": "Dokument",
|
1258
|
+
"UPDATE": "Uppdatering",
|
1259
|
+
"DOCUMENT": "Dokument",
|
1260
|
+
"CONFIRM": "Bekräfta",
|
1261
|
+
"SEARCH": "Sök",
|
1262
|
+
"IMAGE_MODE_POINTER": "Pekar",
|
1263
|
+
"IMAGE_MODE_RECTANGLE": "Rektangel",
|
1264
|
+
"IMAGE_MODE_CIRCLE": "Cirkel",
|
1265
|
+
"IMAGE_MODE_POLYGON": "Polygon",
|
1266
|
+
"IMAGE_MODE_REMOVE": "Ta bort",
|
1267
|
+
"POLYGON_DRAW": "Använd SKIFT + klicka för den sista kontrollpunkten",
|
1268
|
+
"RECTANGLE_DRAW": "Håll ned SHIFT för kvadratläge",
|
1269
|
+
"SQUARE_DRAW": "Släpp SHIFT för rektangelläge",
|
1270
|
+
"INVALID_URL": "Ogiltig URL",
|
1271
|
+
"REQUIRED_URL": "URL krävs",
|
1272
|
+
"CLOSE": "Stänga",
|
1273
|
+
"DOCUMENT_PROCESS": "Dokument / Process",
|
1274
|
+
"UPLOAD_FILE_NOT_VALID_FORMAT": "Den uppladdade filen är ogiltigt format. Filformat som stöds: {0}",
|
1275
|
+
"UPLOAD_FILE_OVERSIZE": "Filen som laddas upp är över storleksgränsen. Storleksgränsen är {0}MB",
|
1276
|
+
"UPLOAD_FILE_FAILED": "Det gick inte att ladda upp filen.",
|
1277
|
+
"ASSISTIVE_TEXT": "Hjälpsam text",
|
1278
|
+
"WORDS": "Ord",
|
1279
|
+
"CHARACTERS": "Tecken",
|
1280
|
+
"SELECT_VIDEO_FROM_ARCHIVE": "Välj video från arkivet",
|
1281
|
+
"SELECT_VIDEO_IMAGE": "Välj videobild",
|
1282
|
+
"DOCUMENT_HEADER": "Dokumentinformation",
|
1283
|
+
"ADD_IMAGE": "Lägg till ett foto",
|
1284
|
+
"IMAGE_INFO": "Bildinformation",
|
1285
|
+
"ADD_A_FILE": "Lägg till en fil",
|
1286
|
+
"EXTENSION_IS_NOT_SUPPORTED": "Tillägget stöds inte.",
|
1287
|
+
"ACCEPT_MP4_ONLY": "Stöder inte denna videotyp. Acceptera endast MP4.",
|
1288
|
+
"MAXIMIZE": "Maximera",
|
1289
|
+
"MINIMIZE": "Minimera",
|
1290
|
+
"HEADING": "Styckeformat",
|
1291
|
+
"FONT_SIZE": "Storlek",
|
1292
|
+
"FONT_FAMILY": "Font-familj",
|
1293
|
+
"FONT_COLOR": "Text färg",
|
1294
|
+
"FONT_BACKGROUND_COLOR": "Bakgrundsfärg",
|
1295
|
+
"BOLD": "Fet",
|
1296
|
+
"ITALIC": "Kursiv",
|
1297
|
+
"UNDERLINE": "Understrykning",
|
1298
|
+
"STRIKETHROUGH": "Överstrykning",
|
1299
|
+
"HORIZONTAL_LINE": "Infoga horisontell linje",
|
1300
|
+
"PAGE_BREAK": "Infoga sidbrytning för utskrift",
|
1301
|
+
"TEXT_ALIGNMENT": "Textplacering",
|
1302
|
+
"BULLETED_LIST": "Lägg till/ta bort punktlista",
|
1303
|
+
"NUMBERED_LIST": "Lägg till/ta bort numrerad lista",
|
1304
|
+
"DECREASE_INDENT": "Minska indragen",
|
1305
|
+
"INCREASE_INDENT": "Öka indraget",
|
1306
|
+
"SUBSCRIPT": "Nedsänkt skrift",
|
1307
|
+
"SUPERSCRIPT": "Upphöjd skrift",
|
1308
|
+
"UNDO": "Ångra",
|
1309
|
+
"REDO": "Gör igen",
|
1310
|
+
"SPECIAL_CHARACTERS": "Infoga symbol",
|
1311
|
+
"BLOCKQUOTE": "Block citat",
|
1312
|
+
"INSERT_IMAGE": "Blid",
|
1313
|
+
"INSERT_MEDIA": "Sätt i media",
|
1314
|
+
"BROWSE_VIDEO": "Video",
|
1315
|
+
"INSERT_TABLE": "Tabell",
|
1316
|
+
"ANCHOR": "Infoga/redigera ankare",
|
1317
|
+
"TOOLTIP": "Infoga förklaring",
|
1318
|
+
"TIMESTAMP": "Insert timestamp",
|
1319
|
+
"ADD_TEMPLATE": "Skapa/Ändra innehållsmallar",
|
1320
|
+
"TEMPLATES": "Innehållsmallar",
|
1321
|
+
"REMOVE_FORMAT": "Ta bort formatering",
|
1322
|
+
"FIND_AND_REPLACE": "Sök och ersätt",
|
1323
|
+
"FLOWCHART": "Lägg till flödesschema",
|
1324
|
+
"BPMN": "Affärsprocessmodell och notation",
|
1325
|
+
"ABOUT_CKEDITOR": "Om CKEditor",
|
1326
|
+
"CREATE_TABLE_OF_CONTENTS": "Skapa innehållsförteckning",
|
1327
|
+
"SOURCE": "Källa",
|
1328
|
+
"TOGGLE_TOOLBAR": "Byt verktygsfält",
|
1329
|
+
},
|
1330
|
+
"ABOUT": {
|
1331
|
+
"ABOUT_CKEDITOR": "Om CKEditor",
|
1332
|
+
"CKEDITOR5_VERSION": "CKEditor 5 version",
|
1333
|
+
"FOR_LICENSING_INFORMATION_PLEASE_VISIT_OUR_WEBSITE": "För licensinformation, besök vår webbplats",
|
1334
|
+
"ALL_RIGHTS_RESERVED": "Alla rättigheter förbehållna",
|
1335
|
+
"CHECK": "Se",
|
1336
|
+
"FOR_HELP": "för hjälp",
|
1337
|
+
"CKEDITOR_USERS_GUIDE": "användarmanualen för CKEditor",
|
1338
|
+
"COPYRIGHT": "Upphovsrätt ©"
|
1339
|
+
},
|
1340
|
+
"BPMN": {
|
1341
|
+
"DEFAULT": "Standard",
|
1342
|
+
"TYPE": "Typ",
|
1343
|
+
"NAME": "Namn",
|
1344
|
+
"EXCLUSIVE": "Exklusiv",
|
1345
|
+
"INCLUSIVE": "Inklusive",
|
1346
|
+
"PARALLEL": "Parallell",
|
1347
|
+
"APPEARANCE": "Utseende",
|
1348
|
+
"BODY_COLOR": "Färg",
|
1349
|
+
"TEXT_ALIGNMENT": "Textplacering",
|
1350
|
+
"LEFT": "Vänster",
|
1351
|
+
"CENTER": "Mittjusterare",
|
1352
|
+
"RIGHT": "Höger",
|
1353
|
+
"FONT_FAMILY": "Font-familj",
|
1354
|
+
"FONT_SIZE": "Fontstorlek",
|
1355
|
+
"CONTENT": "Innehåll",
|
1356
|
+
"ICON": "Ikon",
|
1357
|
+
"NONE": "Ingen",
|
1358
|
+
"MESSAGE": "Meddelande",
|
1359
|
+
"USER": "Användare",
|
1360
|
+
"TASK": "Uppgift",
|
1361
|
+
"TRANSACTION": "Transaktion",
|
1362
|
+
"EVENT_SUB_PROCESS": "event-sub-process",
|
1363
|
+
"CALL_ACTIVITY": "samtalsaktivitet",
|
1364
|
+
"SUB_PROCESS": "Sub-process",
|
1365
|
+
"START": "Start",
|
1366
|
+
"END": "Slut",
|
1367
|
+
"INTERMEDIATE": "Mellanliggande",
|
1368
|
+
"CANCEL": "Annullera",
|
1369
|
+
"CANCEL_OULINED": "Avbryt skisserad",
|
1370
|
+
"CANCEL_FILLED": "Avbryt fylld",
|
1371
|
+
"COMPENSATION_OULINED": "Ersättning skisserad",
|
1372
|
+
"COMPENSATION_FILLED": "Ersättningen fylld",
|
1373
|
+
"CONDITIONAL": "Villkorlig",
|
1374
|
+
"ERROR_OULINED": "Fel angivet",
|
1375
|
+
"ERROR_FILLED": "Felet fyllt",
|
1376
|
+
"ESCALATION_OULINED": "Eskalering fodrad",
|
1377
|
+
"ESCALATION_FILLED": "Eskalering fylld",
|
1378
|
+
"LINK_OULINED": "Länkkontur",
|
1379
|
+
"LINK_FILLED": "Länken fylld",
|
1380
|
+
"MESSAGE_OULINED": "Meddelandet skisserat",
|
1381
|
+
"MESSAGE_FILLED": "Meddelandet fyllt",
|
1382
|
+
"MULTIPLE_OULINED": "Flera skisserade",
|
1383
|
+
"MULTIPLE_FILLED": "Flera fyllda",
|
1384
|
+
"PARALLEL_MULTIPLE": "Parallell multipel",
|
1385
|
+
"TERMINATION_OULINED": "Uppsägning skisserad",
|
1386
|
+
"TERMINATION_FILLED": "Uppsägning fylld",
|
1387
|
+
"TIMER": "Timer",
|
1388
|
+
"SIGNAL_OULINED": "Signalen skisserad",
|
1389
|
+
"SIGNAL_FILLED": "Signalen fylld",
|
1390
|
+
"PARALLEL_OULINED": "Parallellt kontur",
|
1391
|
+
"PARALLEL_FILLED": "Parallellt fylld",
|
1392
|
+
"SUB_TYPE": "Undertyp",
|
1393
|
+
"TRANSPARENCY": "Genomskinlighet",
|
1394
|
+
"LABEL": "Märka",
|
1395
|
+
"TEXT": "Text",
|
1396
|
+
"POSITION": "Placering",
|
1397
|
+
"LABELS": "Etiketter",
|
1398
|
+
"NORMAL": "Vanligt",
|
1399
|
+
"ASSOCIATION": "Association",
|
1400
|
+
"CONVERSATION": "Konversation",
|
1401
|
+
"PARTICPANTS": "Deltagare",
|
1402
|
+
"INITIATING_PARTICIPANT": "Initierande deltagare",
|
1403
|
+
"PRIMARY_COLOR": "Huvudfärg",
|
1404
|
+
"SECONDARY_COLOR": "Sekundär färg",
|
1405
|
+
"CALL-CONVERSATION": "Ring samtalet",
|
1406
|
+
"ADD_LANES": "Lägg till körfält",
|
1407
|
+
"PERCENTAGE": "Procentsats",
|
1408
|
+
"ADD_SUBLANES": "Lägg till körfält",
|
1409
|
+
"HEADER_COLOR": "Rubrikfärg",
|
1410
|
+
"LANE_BODY_COLOR": "Lane Body Color",
|
1411
|
+
"LANE_HEADER_COLOR": "Filhuvudets färg",
|
1412
|
+
"OPEN_A_PRINT_DIALOG": "Öppna en utskriftsdialogruta",
|
1413
|
+
"OPEN_AS_JSON": "Öppna som JSON",
|
1414
|
+
"ZOOM_IN": "Zooma in",
|
1415
|
+
"ZOOM_OUT": "Zooma ut",
|
1416
|
+
"ZOOM_TO_FIT": "Zooma för att passa",
|
1417
|
+
"SEND_TO_FRONT": "Skicka till fronten",
|
1418
|
+
"BRING_OBJECT_TO_FRONT": "Flytta objektet framåt till fronten",
|
1419
|
+
"SEND_TO_BACK": "Skicka i ryggen",
|
1420
|
+
"BRING_OBJECT_TO_BACK": "Flytta objektet bakåt",
|
1421
|
+
"CLEAR_PAPER": "Tömma",
|
1422
|
+
"UNDO": "Ångra",
|
1423
|
+
"REDO": "Upprepa",
|
1424
|
+
"SELECT_TEMPLATE": "Välj mall",
|
1425
|
+
"DELETE_TEMPLATE": "Ta bort mall",
|
1426
|
+
"SAVE_AS_TEMPLATE": "Spara som mall",
|
1427
|
+
"RESET_TO_LAST_SAVE": "Släng osparade ändringar",
|
1428
|
+
"GRID_SIZE": "Rutnätsstorlek",
|
1429
|
+
"CHANGE_GRID_SIZE": "ändra rutstorlek",
|
1430
|
+
"SNAPLINES": "Hjälplinjer:",
|
1431
|
+
"ENABLE_DISABLE_SNAPLINES": "Aktivera/inaktivera hjälplinjer",
|
1432
|
+
"LINE_COLOR": "Linjefärg",
|
1433
|
+
"BODY_LINE_COLOR": "Kroppslinjefärg",
|
1434
|
+
"TYPE_COLOR": "Typ Färg",
|
1435
|
+
"MARKER": "Markörer",
|
1436
|
+
"MARKER_COLOR": "Markörer Färg",
|
1437
|
+
"TOP_COLOR": "Toppfärg",
|
1438
|
+
"TOP_LINE_COLOR": "Top Line Färg",
|
1439
|
+
"COLLECTION": "Samling",
|
1440
|
+
"COLLECTION_COLOR": "Samling Färg",
|
1441
|
+
"SIZE": "Storlek",
|
1442
|
+
"HEADER_SIZE": "Rubrikstorlek",
|
1443
|
+
"HEADER": "Rubrik",
|
1444
|
+
"HEADER_STROKE_COLOR": "Rubrikens streckfärg",
|
1445
|
+
"HEADER_LABEL_COLOR": "Rubriketikettens färg",
|
1446
|
+
"LANE_STROKE_COLOR": "Lane Stroke Färg",
|
1447
|
+
"LANE_HEADER_STROKE": "Lane Header Stroke",
|
1448
|
+
"LANE_LABEL_COLOR": "Lane Label Färg",
|
1449
|
+
"MILESTONE_HEADER_FILL": "Milstolpe Header Fyll",
|
1450
|
+
"MILESTONE_STROKE": "Milstolpe Stroke",
|
1451
|
+
"MILESTONE_LABEL_COLOR": "Milstolpe etikett färg",
|
1452
|
+
"MILESTONE_LINE_COLOR": "Milestone Line Color",
|
1453
|
+
"HEADER_ALIGNMENT": "Rubrikjustering",
|
1454
|
+
"HEADER_FONT_FAMILY": "Header Font familj",
|
1455
|
+
"HEADER_FONT_SIZE": "Header Font storlek",
|
1456
|
+
"LANE_ALIGNMENT": "Körfältsinriktning",
|
1457
|
+
"LANE_FONT_FAMILY": "Lane Font familj",
|
1458
|
+
"LANE_FONT_SIZE": "Lane Teckenstorlek",
|
1459
|
+
"MILESTONE_ALIGNMENT": "Milstolpejustering",
|
1460
|
+
"MILESTONE_FONT_FAMILY": "Milestone Font family",
|
1461
|
+
"MILESTONE_FONT_SIZE": "Milestone Font family",
|
1462
|
+
"TEXT_COLOR": "Text Farge",
|
1463
|
+
"TEXT_HEADER_COLOR": "Header Text Farge",
|
1464
|
+
"TEXT_BACKGROUND_COLOR": "Bakgrund Text Farge",
|
1465
|
+
"TEXT_INSIDE_SHAPE": "Vis texten inni figur",
|
1466
|
+
"TEMPLATE_NAME": "Malnamn",
|
1467
|
+
"TEMPLATE_INFO": "Vänligen skriv ditt namn",
|
1468
|
+
"SELECT_TEMPLATE_INFORMATION": "Du må välja en malen innan du utför denna handling.",
|
1469
|
+
"CONNECTION": "Förbindelse",
|
1470
|
+
"PROPERTIES": "Egenskaper",
|
1471
|
+
"BUSINESS_PROCESS_MODEL_AND_NOTATION": "Affärsprocessmodell och notation",
|
1472
|
+
"CONNECTED_ATTACHMENT": "Bifogad bilaga",
|
1473
|
+
"CONNECTED_DOCUMENT_OR_PROCESS": "Länkade dokumentet/processen",
|
1474
|
+
"DELETE_ATTACHMENT": "Ta bort bilagor",
|
1475
|
+
"DELETE_DOCUMENT_OR_PROCESS": "Ta bort dokumentet/processen",
|
1476
|
+
"CHOOSE_ANCHOR_IN_TEXT_OPTIONAL": "Välj ankare i text (valfritt)",
|
1477
|
+
"RELOAD_ANCHORS": "Ladda om ankare",
|
1478
|
+
"RESET_TO_ORIGINAL": "Ignorera ändringar",
|
1479
|
+
"AUTO_LAYOUT_GRAPH": "Auto-layout graf",
|
1480
|
+
"FULLSCREEN": "Helskärmsvisning",
|
1481
|
+
"FLOWCHART": "Flödesschema",
|
1482
|
+
"HANDBOOK": "e-handbok",
|
1483
|
+
"TOGGLE_FULL_SCREEN": "Växla mellan helskärm",
|
1484
|
+
},
|
1485
|
+
"QMSCKEDITOR_MESSAGE": {
|
1486
|
+
"CONFIRM_DELETE_TEMPLATE": "Är du säker på att du vill ta bort den här mallen??",
|
1487
|
+
"CONFIRM_CHANGE_TEMPLATE": "Är du säker på att du vill använda den här mallen i redigeraren??",
|
1488
|
+
"CONFIRM_DELETE_EXISTING_CONNECTION": "Du måste ta bort den befintliga anslutningen innan du utför den här åtgärden.",
|
1489
|
+
"CONFIRM_DELETE_ATTACHMENT": "Är du säker på att du vill ta bort den här länken?",
|
1490
|
+
"CONFIRM_DELETE_DOCUMENT_OR_PROCESS": "Är du säker på att du vill ta bort det här dokumentet/processen?",
|
1491
|
+
},
|
1492
|
+
"FLOWCHART": {
|
1493
|
+
"REMOVE_ELEMENT": 'Klicka för att ta bort objektet',
|
1494
|
+
"CLONE_AND_CONNECT": 'Klicka och dra för att klona och bifoga objektet på en gång',
|
1495
|
+
"CLONE": 'Klicka och dra för att klona objektet',
|
1496
|
+
"BREAK_ALL_CONNECTIONS": 'Klicka för att bryta alla kopplingar till andra objekt',
|
1497
|
+
"CONNECT": 'Klicka och dra för att ansluta till objektet',
|
1498
|
+
"ROTATE": 'Klicka och dra för att rotera objektet',
|
1499
|
+
"REMOVE_SELECTED_ELEMENT": 'Klicka för att ta bort de markerade objekten',
|
1500
|
+
"ROTATE_SELECTED_ELEMENT": 'Klicka och dra för att rotera de markerade objekten',
|
1501
|
+
"RESIZE_SELECTED_ELEMENT": 'Klicka och dra för att ändra storlek på de markerade objekten',
|
1502
|
+
"RECTANGLE": 'Rektangel',
|
1503
|
+
"ELLIPSE": 'Ellips',
|
1504
|
+
"RECTANGLE_WITH_PORTS": 'Rektangel med grindar',
|
1505
|
+
"ELLIPSE_WITH_PORTS": 'Ellips med grindar',
|
1506
|
+
"RHOMBUS": 'Romb',
|
1507
|
+
"CYLINDER": 'Sylinder',
|
1508
|
+
"IMAGE": 'Bild',
|
1509
|
+
"CARD": 'Kort',
|
1510
|
+
"ICON": 'Ikon',
|
1511
|
+
"RECTANGLE_WITH_HEADER": 'Rektangel med rubrik',
|
1512
|
+
"START_STATE": 'Initial status',
|
1513
|
+
"END_STATE": 'Slutläge',
|
1514
|
+
"STATE": 'Stat',
|
1515
|
+
"PLACE": 'Plats',
|
1516
|
+
"TRANSITION": 'Övergång',
|
1517
|
+
"ENTITY": 'Entitet',
|
1518
|
+
"WEAK_ENTITY": 'Svag enhet',
|
1519
|
+
"RELATIONSHIP": 'Relation',
|
1520
|
+
"IDENTIFYING_RELATIONSHIP": 'Identifiera villkor',
|
1521
|
+
"ISA": 'ISA',
|
1522
|
+
"KEY": 'Nyckel',
|
1523
|
+
"NORMAL": 'Vanligt',
|
1524
|
+
"MULTIVALUED": 'Flervärdigt',
|
1525
|
+
"DERIVED": 'Härledd',
|
1526
|
+
"CLASS": 'Klass',
|
1527
|
+
"INTERFACE": 'Gränssnitt',
|
1528
|
+
"ABSTRACT": 'Abstrakt',
|
1529
|
+
"MEMBER": 'Medlem',
|
1530
|
+
"UNDO": 'Ångra',
|
1531
|
+
"REDO": 'Förändra',
|
1532
|
+
"CLEAR_PAPER": 'Tomt papper',
|
1533
|
+
"EXPORT_SVG": 'Öppna som SVG i en popup',
|
1534
|
+
"EXPORT_PNG": 'Öppna som PNG i en popup',
|
1535
|
+
"PRINT": 'Åpne en utskriftsdialogboks',
|
1536
|
+
"SEND_TO_FRONT": 'Ta fram föremålet',
|
1537
|
+
"SEND_TO_BACK": 'Skicka objekt till baksidan',
|
1538
|
+
"AUTO_LAYOUT_GRAPH": 'Auto-layout graf',
|
1539
|
+
"ZOOM_TO_FIT": 'Zooma för att passa',
|
1540
|
+
"ZOOM_OUT": 'Zooma ut',
|
1541
|
+
"ZOOM_IN": 'Zooma in',
|
1542
|
+
"CHANGE_GRID_SIZE": 'Ändra rutnätsstorlek',
|
1543
|
+
"SNAPLINES": 'Ändra rutnätsstorlek',
|
1544
|
+
"FULLSCREEN": 'Växla helskärmsläge',
|
1545
|
+
"SELECT_TEMPLATE": "Välj mall",
|
1546
|
+
"DELETE_TEMPLATE": "Ta bort mall",
|
1547
|
+
"SAVE_AS_TEMPLATE": "Spara som mall",
|
1548
|
+
"RESET_TO_LAST_SAVE": "Släng osparade ändringar"
|
943
1549
|
}
|
944
1550
|
};
|
945
1551
|
|
1552
|
+
const QMS_THEMES = ['qms-theme-default', 'qms-theme-pink'];
|
1553
|
+
const QMS_THEME_DEFAULT = 'qms-theme-default';
|
1554
|
+
const QMS_LANGUAGES = ['en', 'no', 'sv'];
|
1555
|
+
|
946
1556
|
class TranslateLibraryService {
|
947
1557
|
constructor() {
|
948
1558
|
this.getLanguageSubject$ = new BehaviorSubject('en');
|
949
|
-
this.availableLanguages = { en, no };
|
1559
|
+
this.availableLanguages = { en, no, sv };
|
1560
|
+
this.qmsLanguages = QMS_LANGUAGES;
|
950
1561
|
}
|
951
1562
|
setLanguage(item) {
|
952
1563
|
this.getLanguageSubject$.next(item);
|
953
1564
|
}
|
954
1565
|
getObjectLang(lang) {
|
1566
|
+
var _a;
|
955
1567
|
let language = lang && lang.toLowerCase() || 'en';
|
956
|
-
|
957
|
-
language = 'en';
|
958
|
-
}
|
1568
|
+
language = (_a = this.qmsLanguages.find(item => item === language)) !== null && _a !== void 0 ? _a : 'en';
|
959
1569
|
return this.availableLanguages[language];
|
960
1570
|
}
|
961
1571
|
}
|
@@ -4031,10 +4641,6 @@ QMSListModule.decorators = [
|
|
4031
4641
|
},] }
|
4032
4642
|
];
|
4033
4643
|
|
4034
|
-
const QMS_THEMES = ['qms-theme-default', 'qms-theme-pink'];
|
4035
|
-
const QMS_THEME_DEFAULT = 'qms-theme-default';
|
4036
|
-
const QMS_LANGUAGES = ['en', 'no'];
|
4037
|
-
|
4038
4644
|
class QMSThemingLibraryService {
|
4039
4645
|
constructor(doc) {
|
4040
4646
|
this.doc = doc;
|
@@ -4377,116 +4983,121 @@ QMSUploadFileErrorDialogModule.decorators = [
|
|
4377
4983
|
},] }
|
4378
4984
|
];
|
4379
4985
|
|
4380
|
-
const BREADCRUMB_DROPDOWN_ICON = `<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4381
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.3552 5.35508C11.9118 4.91175 11.3168 4.66675 10.6985 4.66675H4.66683C3.3835 4.66675 2.34516 5.71675 2.34516 7.00008L2.3335 21.0001C2.3335 22.2834 3.3835 23.3334 4.66683 23.3334H23.3335C24.6168 23.3334 25.6668 22.2834 25.6668 21.0001V9.33341C25.6668 8.05008 24.6168 7.00008 23.3335 7.00008H14.0002L12.3552 5.35508Z" fill="#00324E"/>
|
4382
|
-
<path d="M10.25 13.125L14 16.875L17.75 13.125H10.25Z" fill="white" fill-opacity="0.6"/>
|
4383
|
-
</svg>
|
4986
|
+
const BREADCRUMB_DROPDOWN_ICON = `<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4987
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.3552 5.35508C11.9118 4.91175 11.3168 4.66675 10.6985 4.66675H4.66683C3.3835 4.66675 2.34516 5.71675 2.34516 7.00008L2.3335 21.0001C2.3335 22.2834 3.3835 23.3334 4.66683 23.3334H23.3335C24.6168 23.3334 25.6668 22.2834 25.6668 21.0001V9.33341C25.6668 8.05008 24.6168 7.00008 23.3335 7.00008H14.0002L12.3552 5.35508Z" fill="#00324E"/>
|
4988
|
+
<path d="M10.25 13.125L14 16.875L17.75 13.125H10.25Z" fill="white" fill-opacity="0.6"/>
|
4989
|
+
</svg>
|
4384
4990
|
`;
|
4385
|
-
const PROCESS_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4386
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 3V9H5V19H15V21H21V15H15V17H7V9H9V7H15V9H21V3H15V5H9V3H3ZM7 5V7H5V5H7ZM19 5V7H17V5H19ZM19 19V17H17V19H19Z" fill="black" fill-opacity="0.6"/>
|
4387
|
-
</svg>
|
4991
|
+
const PROCESS_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4992
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 3V9H5V19H15V21H21V15H15V17H7V9H9V7H15V9H21V3H15V5H9V3H3ZM7 5V7H5V5H7ZM19 5V7H17V5H19ZM19 19V17H17V19H19Z" fill="black" fill-opacity="0.6"/>
|
4993
|
+
</svg>
|
4388
4994
|
`;
|
4389
|
-
const PROCESS_AREA_OUTLINED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4390
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H11V18H4V6H9.17L11.17 8H20V11H22V8C22 6.9 21.1 6 20 6H12L10 4Z" fill="black" fill-opacity="0.6"/>
|
4391
|
-
<path d="M13 16.5V13H16.5V14.1667H20V13H23.5V16.5H20V15.3333H16.5V16.5H15.3333V21.1667H20V20H23.5V23.5H20V22.3333H14.1667V16.5H13Z" fill="black" fill-opacity="0.6"/>
|
4392
|
-
</svg>
|
4995
|
+
const PROCESS_AREA_OUTLINED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4996
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H11V18H4V6H9.17L11.17 8H20V11H22V8C22 6.9 21.1 6 20 6H12L10 4Z" fill="black" fill-opacity="0.6"/>
|
4997
|
+
<path d="M13 16.5V13H16.5V14.1667H20V13H23.5V16.5H20V15.3333H16.5V16.5H15.3333V21.1667H20V20H23.5V23.5H20V22.3333H14.1667V16.5H13Z" fill="black" fill-opacity="0.6"/>
|
4998
|
+
</svg>
|
4393
4999
|
`;
|
4394
|
-
const PROCESS_AREA_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4395
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V11H13C11.8954 11 11 11.8954 11 13V20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4Z" fill="black" fill-opacity="0.6"/>
|
4396
|
-
<path d="M13 16.5V13H16.5V14.1667H20V13H23.5V16.5H20V15.3333H16.5V16.5H15.3333V21.1667H20V20H23.5V23.5H20V22.3333H14.1667V16.5H13Z" fill="black" fill-opacity="0.6"/>
|
4397
|
-
</svg>
|
5000
|
+
const PROCESS_AREA_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5001
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V11H13C11.8954 11 11 11.8954 11 13V20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4Z" fill="black" fill-opacity="0.6"/>
|
5002
|
+
<path d="M13 16.5V13H16.5V14.1667H20V13H23.5V16.5H20V15.3333H16.5V16.5H15.3333V21.1667H20V20H23.5V23.5H20V22.3333H14.1667V16.5H13Z" fill="black" fill-opacity="0.6"/>
|
5003
|
+
</svg>
|
4398
5004
|
`;
|
4399
|
-
const DOCUMENT_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4400
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 2H14L20 8V20C20 21.1 19.1 22 18 22H5.99C4.89 22 4 21.1 4 20L4.01 4C4.01 2.9 4.9 2 6 2ZM6 4V20H18V9H13V4H6Z" fill="black" fill-opacity="0.6"/>
|
4401
|
-
</svg>
|
5005
|
+
const DOCUMENT_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5006
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 2H14L20 8V20C20 21.1 19.1 22 18 22H5.99C4.89 22 4 21.1 4 20L4.01 4C4.01 2.9 4.9 2 6 2ZM6 4V20H18V9H13V4H6Z" fill="black" fill-opacity="0.6"/>
|
5007
|
+
</svg>
|
4402
5008
|
`;
|
4403
|
-
const DEVIATION_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4404
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 21.5L12 2.5L23 21.5H1ZM19.53 19.5L12 6.49L4.47 19.5H19.53ZM11 16.5V18.5H13V16.5H11ZM11 10.5H13V14.5H11V10.5Z" fill="black" fill-opacity="0.6"/>
|
4405
|
-
</svg>
|
5009
|
+
const DEVIATION_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5010
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 21.5L12 2.5L23 21.5H1ZM19.53 19.5L12 6.49L4.47 19.5H19.53ZM11 16.5V18.5H13V16.5H11ZM11 10.5H13V14.5H11V10.5Z" fill="black" fill-opacity="0.6"/>
|
5011
|
+
</svg>
|
4406
5012
|
`;
|
4407
|
-
const CHECKLIST_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4408
|
-
<path d="M3 13H5V11H3V13Z" fill="black" fill-opacity="0.6"/>
|
4409
|
-
<path d="M3 17H5V15H3V17Z" fill="black" fill-opacity="0.6"/>
|
4410
|
-
<path d="M3 9H5V7H3V9Z" fill="black" fill-opacity="0.6"/>
|
4411
|
-
<path d="M7 13H21V11H7V13Z" fill="black" fill-opacity="0.6"/>
|
4412
|
-
<path d="M7 17H21V15H7V17Z" fill="black" fill-opacity="0.6"/>
|
4413
|
-
<path d="M7 7V9H21V7H7Z" fill="black" fill-opacity="0.6"/>
|
4414
|
-
</svg>
|
5013
|
+
const CHECKLIST_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5014
|
+
<path d="M3 13H5V11H3V13Z" fill="black" fill-opacity="0.6"/>
|
5015
|
+
<path d="M3 17H5V15H3V17Z" fill="black" fill-opacity="0.6"/>
|
5016
|
+
<path d="M3 9H5V7H3V9Z" fill="black" fill-opacity="0.6"/>
|
5017
|
+
<path d="M7 13H21V11H7V13Z" fill="black" fill-opacity="0.6"/>
|
5018
|
+
<path d="M7 17H21V15H7V17Z" fill="black" fill-opacity="0.6"/>
|
5019
|
+
<path d="M7 7V9H21V7H7Z" fill="black" fill-opacity="0.6"/>
|
5020
|
+
</svg>
|
4415
5021
|
`;
|
4416
|
-
const RISK_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4417
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 3V21H21V3H3ZM11 19H5V13H11V19ZM5 11H11V5H5V11ZM19 19H13V13H19V19ZM13 11H19V5H13V11Z" fill="black" fill-opacity="0.6"/>
|
4418
|
-
</svg>
|
5022
|
+
const RISK_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5023
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 3V21H21V3H3ZM11 19H5V13H11V19ZM5 11H11V5H5V11ZM19 19H13V13H19V19ZM13 11H19V5H13V11Z" fill="black" fill-opacity="0.6"/>
|
5024
|
+
</svg>
|
4419
5025
|
`;
|
4420
|
-
const NORMAL_FOLDER_OUTLINED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4421
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4ZM11.17 8L9.17 6H4V18H20V8H11.17Z" fill="black" fill-opacity="0.6"/>
|
4422
|
-
</svg>
|
5026
|
+
const NORMAL_FOLDER_OUTLINED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5027
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4ZM11.17 8L9.17 6H4V18H20V8H11.17Z" fill="black" fill-opacity="0.6"/>
|
5028
|
+
</svg>
|
4423
5029
|
`;
|
4424
|
-
const NORMAL_FOLDER_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4425
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.59 4.59C10.21 4.21 9.7 4 9.17 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6H12L10.59 4.59Z" fill="black" fill-opacity="0.6"/>
|
4426
|
-
</svg>
|
5030
|
+
const NORMAL_FOLDER_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5031
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.59 4.59C10.21 4.21 9.7 4 9.17 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6H12L10.59 4.59Z" fill="black" fill-opacity="0.6"/>
|
5032
|
+
</svg>
|
4427
5033
|
`;
|
4428
|
-
const LOCAL_FOLDER_OUTLINED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4429
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H11V18H4V6H9.17L11.17 8H20V12H22V8C22 6.9 21.1 6 20 6H12L10 4Z" fill="black" fill-opacity="0.6"/>
|
4430
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 21.5001V19.0001H19V21.5001C19 21.7751 19.225 22.0001 19.5 22.0001H21C21.275 22.0001 21.5 21.7751 21.5 21.5001V18.0001H22.35C22.58 18.0001 22.69 17.7151 22.515 17.5651L18.335 13.8001C18.145 13.6301 17.855 13.6301 17.665 13.8001L13.485 17.5651C13.315 17.7151 13.42 18.0001 13.65 18.0001H14.5V21.5001C14.5 21.7751 14.725 22.0001 15 22.0001H16.5C16.775 22.0001 17 21.7751 17 21.5001Z" fill="#1954A9"/>
|
4431
|
-
</svg>
|
5034
|
+
const LOCAL_FOLDER_OUTLINED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5035
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H11V18H4V6H9.17L11.17 8H20V12H22V8C22 6.9 21.1 6 20 6H12L10 4Z" fill="black" fill-opacity="0.6"/>
|
5036
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 21.5001V19.0001H19V21.5001C19 21.7751 19.225 22.0001 19.5 22.0001H21C21.275 22.0001 21.5 21.7751 21.5 21.5001V18.0001H22.35C22.58 18.0001 22.69 17.7151 22.515 17.5651L18.335 13.8001C18.145 13.6301 17.855 13.6301 17.665 13.8001L13.485 17.5651C13.315 17.7151 13.42 18.0001 13.65 18.0001H14.5V21.5001C14.5 21.7751 14.725 22.0001 15 22.0001H16.5C16.775 22.0001 17 21.7751 17 21.5001Z" fill="#1954A9"/>
|
5037
|
+
</svg>
|
4432
5038
|
`;
|
4433
|
-
const LOCAL_FOLDER_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4434
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V12H17C13.6863 12 11 14.6863 11 18V20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4Z" fill="black" fill-opacity="0.6"/>
|
4435
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 21.5001V19.0001H19V21.5001C19 21.7751 19.225 22.0001 19.5 22.0001H21C21.275 22.0001 21.5 21.7751 21.5 21.5001V18.0001H22.35C22.58 18.0001 22.69 17.7151 22.515 17.5651L18.335 13.8001C18.145 13.6301 17.855 13.6301 17.665 13.8001L13.485 17.5651C13.315 17.7151 13.42 18.0001 13.65 18.0001H14.5V21.5001C14.5 21.7751 14.725 22.0001 15 22.0001H16.5C16.775 22.0001 17 21.7751 17 21.5001Z" fill="#1954A9"/>
|
4436
|
-
</svg>
|
5039
|
+
const LOCAL_FOLDER_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5040
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V12H17C13.6863 12 11 14.6863 11 18V20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4Z" fill="black" fill-opacity="0.6"/>
|
5041
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 21.5001V19.0001H19V21.5001C19 21.7751 19.225 22.0001 19.5 22.0001H21C21.275 22.0001 21.5 21.7751 21.5 21.5001V18.0001H22.35C22.58 18.0001 22.69 17.7151 22.515 17.5651L18.335 13.8001C18.145 13.6301 17.855 13.6301 17.665 13.8001L13.485 17.5651C13.315 17.7151 13.42 18.0001 13.65 18.0001H14.5V21.5001C14.5 21.7751 14.725 22.0001 15 22.0001H16.5C16.775 22.0001 17 21.7751 17 21.5001Z" fill="#1954A9"/>
|
5042
|
+
</svg>
|
4437
5043
|
`;
|
4438
|
-
const ENTERPRISE_FOLDER_OUTLINED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4439
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H11V18H4V6H9.17L11.17 8H20V11H22V8C22 6.9 21.1 6 20 6H12L10 4Z" fill="black" fill-opacity="0.6"/>
|
4440
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5 17.5V13.5H15.5V15.5H13.5V22.5H17.5V20.5H18.5V22.5H22.5V17.5H20.5ZM15.5 21.5H14.5V20.5H15.5V21.5ZM15.5 19.5H14.5V18.5H15.5V19.5ZM15.5 17.5H14.5V16.5H15.5V17.5ZM17.5 19.5H16.5V18.5H17.5V19.5ZM17.5 17.5H16.5V16.5H17.5V17.5ZM17.5 15.5H16.5V14.5H17.5V15.5ZM19.5 19.5H18.5V18.5H19.5V19.5ZM19.5 17.5H18.5V16.5H19.5V17.5ZM19.5 15.5H18.5V14.5H19.5V15.5ZM21.5 21.5H20.5V20.5H21.5V21.5ZM21.5 19.5H20.5V18.5H21.5V19.5Z" fill="#CF4714"/>
|
4441
|
-
</svg>
|
5044
|
+
const ENTERPRISE_FOLDER_OUTLINED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5045
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H11V18H4V6H9.17L11.17 8H20V11H22V8C22 6.9 21.1 6 20 6H12L10 4Z" fill="black" fill-opacity="0.6"/>
|
5046
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5 17.5V13.5H15.5V15.5H13.5V22.5H17.5V20.5H18.5V22.5H22.5V17.5H20.5ZM15.5 21.5H14.5V20.5H15.5V21.5ZM15.5 19.5H14.5V18.5H15.5V19.5ZM15.5 17.5H14.5V16.5H15.5V17.5ZM17.5 19.5H16.5V18.5H17.5V19.5ZM17.5 17.5H16.5V16.5H17.5V17.5ZM17.5 15.5H16.5V14.5H17.5V15.5ZM19.5 19.5H18.5V18.5H19.5V19.5ZM19.5 17.5H18.5V16.5H19.5V17.5ZM19.5 15.5H18.5V14.5H19.5V15.5ZM21.5 21.5H20.5V20.5H21.5V21.5ZM21.5 19.5H20.5V18.5H21.5V19.5Z" fill="#CF4714"/>
|
5047
|
+
</svg>
|
4442
5048
|
`;
|
4443
|
-
const ENTERPRISE_FOLDER_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4444
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V11H17C13.6863 11 11 13.6863 11 17V20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4Z" fill="black" fill-opacity="0.6"/>
|
4445
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5 17.5V13.5H15.5V15.5H13.5V22.5H17.5V20.5H18.5V22.5H22.5V17.5H20.5ZM15.5 21.5H14.5V20.5H15.5V21.5ZM15.5 19.5H14.5V18.5H15.5V19.5ZM15.5 17.5H14.5V16.5H15.5V17.5ZM17.5 19.5H16.5V18.5H17.5V19.5ZM17.5 17.5H16.5V16.5H17.5V17.5ZM17.5 15.5H16.5V14.5H17.5V15.5ZM19.5 19.5H18.5V18.5H19.5V19.5ZM19.5 17.5H18.5V16.5H19.5V17.5ZM19.5 15.5H18.5V14.5H19.5V15.5ZM21.5 21.5H20.5V20.5H21.5V21.5ZM21.5 19.5H20.5V18.5H21.5V19.5Z" fill="#CF4714"/>
|
5049
|
+
const ENTERPRISE_FOLDER_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5050
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V11H17C13.6863 11 11 13.6863 11 17V20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4Z" fill="black" fill-opacity="0.6"/>
|
5051
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5 17.5V13.5H15.5V15.5H13.5V22.5H17.5V20.5H18.5V22.5H22.5V17.5H20.5ZM15.5 21.5H14.5V20.5H15.5V21.5ZM15.5 19.5H14.5V18.5H15.5V19.5ZM15.5 17.5H14.5V16.5H15.5V17.5ZM17.5 19.5H16.5V18.5H17.5V19.5ZM17.5 17.5H16.5V16.5H17.5V17.5ZM17.5 15.5H16.5V14.5H17.5V15.5ZM19.5 19.5H18.5V18.5H19.5V19.5ZM19.5 17.5H18.5V16.5H19.5V17.5ZM19.5 15.5H18.5V14.5H19.5V15.5ZM21.5 21.5H20.5V20.5H21.5V21.5ZM21.5 19.5H20.5V18.5H21.5V19.5Z" fill="#CF4714"/>
|
4446
5052
|
</svg>`;
|
4447
|
-
const REGIONAL_FOLDER_OUTLINED_ICON = `<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
4448
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H12V18H4V6H9.17L11.17 8H20V11H22V8C22 6.9 21.1 6 20 6H12L10 4Z" fill="black" fill-opacity="0.6"/>
|
4449
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.4999 13.0833C16.4037 13.0833 14.7083 14.7787 14.7083 16.8749C14.7083 19.1337 17.1024 22.2483 18.0883 23.4345C18.3049 23.6945 18.7003 23.6945 18.917 23.4345C19.8974 22.2483 22.2916 19.1337 22.2916 16.8749C22.2916 14.7787 20.5962 13.0833 18.4999 13.0833ZM18.4999 18.2291C17.7524 18.2291 17.1458 17.6224 17.1458 16.8749C17.1458 16.1274 17.7524 15.5208 18.4999 15.5208C19.2474 15.5208 19.8541 16.1274 19.8541 16.8749C19.8541 17.6224 19.2474 18.2291 18.4999 18.2291Z" fill="#662E0D"/>
|
4450
|
-
</svg>
|
5053
|
+
const REGIONAL_FOLDER_OUTLINED_ICON = `<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5054
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H12V18H4V6H9.17L11.17 8H20V11H22V8C22 6.9 21.1 6 20 6H12L10 4Z" fill="black" fill-opacity="0.6"/>
|
5055
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.4999 13.0833C16.4037 13.0833 14.7083 14.7787 14.7083 16.8749C14.7083 19.1337 17.1024 22.2483 18.0883 23.4345C18.3049 23.6945 18.7003 23.6945 18.917 23.4345C19.8974 22.2483 22.2916 19.1337 22.2916 16.8749C22.2916 14.7787 20.5962 13.0833 18.4999 13.0833ZM18.4999 18.2291C17.7524 18.2291 17.1458 17.6224 17.1458 16.8749C17.1458 16.1274 17.7524 15.5208 18.4999 15.5208C19.2474 15.5208 19.8541 16.1274 19.8541 16.8749C19.8541 17.6224 19.2474 18.2291 18.4999 18.2291Z" fill="#662E0D"/>
|
5056
|
+
</svg>
|
5057
|
+
`;
|
5058
|
+
const REGIONAL_FOLDER_ICON = `<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5059
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V11H18C14.6863 11 12 13.6863 12 17V20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4Z" fill="black" fill-opacity="0.6"/>
|
5060
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.4999 13.0833C16.4037 13.0833 14.7083 14.7787 14.7083 16.8749C14.7083 19.1337 17.1024 22.2483 18.0883 23.4345C18.3049 23.6945 18.7003 23.6945 18.917 23.4345C19.8974 22.2483 22.2916 19.1337 22.2916 16.8749C22.2916 14.7787 20.5962 13.0833 18.4999 13.0833ZM18.4999 18.2291C17.7524 18.2291 17.1458 17.6224 17.1458 16.8749C17.1458 16.1274 17.7524 15.5208 18.4999 15.5208C19.2474 15.5208 19.8541 16.1274 19.8541 16.8749C19.8541 17.6224 19.2474 18.2291 18.4999 18.2291Z" fill="#662E0D"/>
|
5061
|
+
</svg>
|
4451
5062
|
`;
|
4452
|
-
const
|
4453
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
4454
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
4455
|
-
</svg>
|
5063
|
+
const DEPARTMENT_FOLDER_OUTLINED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5064
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H11V18H4V6H9.17L11.17 8H20V12H22V8C22 6.9 21.1 6 20 6H12L10 4Z" fill="black" fill-opacity="0.6"/>
|
5065
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 15.25H22C22.555 15.25 23 15.695 23 16.25V21.75C23 22.305 22.555 22.75 22 22.75H14C13.445 22.75 13 22.305 13 21.75L13.005 16.25C13.005 15.695 13.445 15.25 14 15.25H16V14.25C16 13.695 16.445 13.25 17 13.25H19C19.555 13.25 20 13.695 20 14.25V15.25ZM17 15.25H19V14.25H17V15.25Z" fill="#00804C"/>
|
5066
|
+
</svg>
|
4456
5067
|
`;
|
4457
|
-
const
|
4458
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
4459
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 15.25H22C22.555 15.25 23 15.695 23 16.25V21.75C23 22.305 22.555 22.75 22 22.75H14C13.445 22.75 13 22.305 13 21.75L13.005 16.25C13.005 15.695 13.445 15.25 14 15.25H16V14.25C16 13.695 16.445 13.25 17 13.25H19C19.555 13.25 20 13.695 20 14.25V15.25ZM17 15.25H19V14.25H17V15.25Z" fill="#00804C"/>
|
4460
|
-
</svg>
|
5068
|
+
const DEPARTMENT_FOLDER_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5069
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V12H17C13.6863 12 11 14.6863 11 18V20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4Z" fill="black" fill-opacity="0.6"/>
|
5070
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 15.25H22C22.555 15.25 23 15.695 23 16.25V21.75C23 22.305 22.555 22.75 22 22.75H14C13.445 22.75 13 22.305 13 21.75L13.005 16.25C13.005 15.695 13.445 15.25 14 15.25H16V14.25C16 13.695 16.445 13.25 17 13.25H19C19.555 13.25 20 13.695 20 14.25V15.25ZM17 15.25H19V14.25H17V15.25Z" fill="#00804C"/>
|
5071
|
+
</svg>
|
4461
5072
|
`;
|
4462
|
-
const
|
4463
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 4H10L12 6H20C21.1 6 22 6.9 22 8V12H17C13.6863 12 11 14.6863 11 18V20H4C2.9 20 2 19.1 2 18L2.01 6C2.01 4.9 2.9 4 4 4Z" fill="black" fill-opacity="0.6"/>
|
4464
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 15.25H22C22.555 15.25 23 15.695 23 16.25V21.75C23 22.305 22.555 22.75 22 22.75H14C13.445 22.75 13 22.305 13 21.75L13.005 16.25C13.005 15.695 13.445 15.25 14 15.25H16V14.25C16 13.695 16.445 13.25 17 13.25H19C19.555 13.25 20 13.695 20 14.25V15.25ZM17 15.25H19V14.25H17V15.25Z" fill="#00804C"/>
|
4465
|
-
</svg>
|
5073
|
+
const KEYBOARD_UP_ICON = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>
|
4466
5074
|
`;
|
4467
|
-
const
|
5075
|
+
const KEYBOARD_DOWN_ICON = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg>
|
4468
5076
|
`;
|
4469
|
-
const
|
5077
|
+
const DOCUMENT_LOCAL_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5078
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H11V20H6V4H13V9H18V12H20V8L14 2Z" fill="black" fill-opacity="0.6"/>
|
5079
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 21.5001V19.0001H19V21.5001C19 21.7751 19.225 22.0001 19.5 22.0001H21C21.275 22.0001 21.5 21.7751 21.5 21.5001V18.0001H22.35C22.58 18.0001 22.69 17.7151 22.515 17.5651L18.335 13.8001C18.145 13.6301 17.855 13.6301 17.665 13.8001L13.485 17.5651C13.315 17.7151 13.42 18.0001 13.65 18.0001H14.5V21.5001C14.5 21.7751 14.725 22.0001 15 22.0001H16.5C16.775 22.0001 17 21.7751 17 21.5001Z" fill="#1954A9"/>
|
5080
|
+
</svg>
|
4470
5081
|
`;
|
4471
|
-
const
|
4472
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H11V20H6V4H13V9H18V12H20V8L14 2Z" fill="black" fill-opacity="0.6"/>
|
4473
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
4474
|
-
</svg>
|
5082
|
+
const DOCUMENT_DEPARTMENT_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5083
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H11V20H6V4H13V9H18V12H20V8L14 2Z" fill="black" fill-opacity="0.6"/>
|
5084
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 15.25H22C22.555 15.25 23 15.695 23 16.25V21.75C23 22.305 22.555 22.75 22 22.75H14C13.445 22.75 13 22.305 13 21.75L13.005 16.25C13.005 15.695 13.445 15.25 14 15.25H16V14.25C16 13.695 16.445 13.25 17 13.25H19C19.555 13.25 20 13.695 20 14.25V15.25ZM17 15.25H19V14.25H17V15.25Z" fill="#00804C"/>
|
5085
|
+
</svg>
|
4475
5086
|
`;
|
4476
|
-
const
|
4477
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H11V20H6V4H13V9H18V12H20V8L14 2Z" fill="black" fill-opacity="0.6"/>
|
4478
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
4479
|
-
</svg>
|
5087
|
+
const DOCUMENT_REGIONAL_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5088
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H11V20H6V4H13V9H18V12H20V8L14 2Z" fill="black" fill-opacity="0.6"/>
|
5089
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M18 13C16.065 13 14.5 14.565 14.5 16.5C14.5 18.585 16.71 21.46 17.62 22.555C17.82 22.795 18.185 22.795 18.385 22.555C19.29 21.46 21.5 18.585 21.5 16.5C21.5 14.565 19.935 13 18 13ZM18 17.75C17.31 17.75 16.75 17.19 16.75 16.5C16.75 15.81 17.31 15.25 18 15.25C18.69 15.25 19.25 15.81 19.25 16.5C19.25 17.19 18.69 17.75 18 17.75Z" fill="#662E0D"/>
|
5090
|
+
</svg>
|
4480
5091
|
`;
|
4481
|
-
const
|
4482
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H11V20H6V4H13V9H18V12H20V8L14 2Z" fill="black" fill-opacity="0.6"/>
|
4483
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
4484
|
-
</svg>
|
5092
|
+
const DOCUMENT_ENTERPRISE_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5093
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H11V20H6V4H13V9H18V12H20V8L14 2Z" fill="black" fill-opacity="0.6"/>
|
5094
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5 17.5V13.5H15.5V15.5H13.5V22.5H17.5V20.5H18.5V22.5H22.5V17.5H20.5ZM15.5 21.5H14.5V20.5H15.5V21.5ZM15.5 19.5H14.5V18.5H15.5V19.5ZM15.5 17.5H14.5V16.5H15.5V17.5ZM17.5 19.5H16.5V18.5H17.5V19.5ZM17.5 17.5H16.5V16.5H17.5V17.5ZM17.5 15.5H16.5V14.5H17.5V15.5ZM19.5 19.5H18.5V18.5H19.5V19.5ZM19.5 17.5H18.5V16.5H19.5V17.5ZM19.5 15.5H18.5V14.5H19.5V15.5ZM21.5 21.5H20.5V20.5H21.5V21.5ZM21.5 19.5H20.5V18.5H21.5V19.5Z" fill="#CF4714"/>
|
5095
|
+
</svg>
|
4485
5096
|
`;
|
4486
|
-
const
|
4487
|
-
<path
|
4488
|
-
<path
|
4489
|
-
</svg>
|
5097
|
+
const PROCESS_INTERCONNECTED_ICON = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
5098
|
+
<path d="M9.995 4C12.2064 4 14.1976 4.9 15.6485 6.35L18 4V11H10.9956L14.2176 7.78C13.137 6.69 11.656 6 9.995 6C6.68293 6 3.99124 8.69 3.99124 12C3.99124 15.31 6.68293 18 9.995 18C10.3375 18 10.6732 17.9713 11 17.9161V19.9376C10.671 19.9788 10.3356 20 9.995 20C5.57223 20 2 16.42 2 12C2 7.58 5.57223 4 9.995 4Z" fill="black" fill-opacity="0.6"/>
|
5099
|
+
<path d="M13.5 17V13.5H17V14.6667H20.5V13.5H24V17H20.5V15.8333H17V17H15.8333V21.6667H20.5V20.5H24V24H20.5V22.8333H14.6667V17H13.5Z" fill="black" fill-opacity="0.6"/>
|
5100
|
+
</svg>
|
4490
5101
|
`;
|
4491
5102
|
|
4492
5103
|
class QMSIconRegistryService {
|
@@ -4525,6 +5136,9 @@ class QMSIconRegistryService {
|
|
4525
5136
|
registerRiskIcon(_iconRegistry, _sanitizer) {
|
4526
5137
|
_iconRegistry.addSvgIconLiteral('risk', _sanitizer.bypassSecurityTrustHtml(RISK_ICON));
|
4527
5138
|
}
|
5139
|
+
registerProcessInterconnectedIcon(_iconRegistry, _sanitizer) {
|
5140
|
+
_iconRegistry.addSvgIconLiteral('process_interconnected', _sanitizer.bypassSecurityTrustHtml(PROCESS_INTERCONNECTED_ICON));
|
5141
|
+
}
|
4528
5142
|
}
|
4529
5143
|
QMSIconRegistryService.ɵprov = i0.ɵɵdefineInjectable({ factory: function QMSIconRegistryService_Factory() { return new QMSIconRegistryService(); }, token: QMSIconRegistryService, providedIn: "root" });
|
4530
5144
|
QMSIconRegistryService.decorators = [
|
@@ -5088,20 +5702,6 @@ QMSBasicTreeComponent.propDecorators = {
|
|
5088
5702
|
checkBoxEvent: [{ type: Output }]
|
5089
5703
|
};
|
5090
5704
|
|
5091
|
-
var DataType$2;
|
5092
|
-
(function (DataType) {
|
5093
|
-
DataType[DataType["process"] = 2] = "process";
|
5094
|
-
DataType[DataType["document"] = 1] = "document";
|
5095
|
-
DataType[DataType["area"] = 3] = "area";
|
5096
|
-
DataType[DataType["folder"] = 4] = "folder";
|
5097
|
-
DataType[DataType["deviation"] = 5] = "deviation";
|
5098
|
-
DataType[DataType["checklist"] = 6] = "checklist";
|
5099
|
-
DataType[DataType["risk"] = 7] = "risk";
|
5100
|
-
DataType[DataType["deviationType"] = 8] = "deviationType";
|
5101
|
-
DataType[DataType["checklistCategory"] = 9] = "checklistCategory";
|
5102
|
-
DataType[DataType["riskFolder"] = 10] = "riskFolder";
|
5103
|
-
})(DataType$2 || (DataType$2 = {}));
|
5104
|
-
|
5105
5705
|
var DocumentNodeType$2;
|
5106
5706
|
(function (DocumentNodeType) {
|
5107
5707
|
DocumentNodeType[DocumentNodeType["Document"] = 1] = "Document";
|
@@ -5222,6 +5822,21 @@ const TreeFunctions$1 = {
|
|
5222
5822
|
findChild: findChild$2
|
5223
5823
|
};
|
5224
5824
|
|
5825
|
+
var DataType;
|
5826
|
+
(function (DataType) {
|
5827
|
+
DataType[DataType["process"] = 2] = "process";
|
5828
|
+
DataType[DataType["document"] = 1] = "document";
|
5829
|
+
DataType[DataType["area"] = 3] = "area";
|
5830
|
+
DataType[DataType["folder"] = 4] = "folder";
|
5831
|
+
DataType[DataType["deviation"] = 5] = "deviation";
|
5832
|
+
DataType[DataType["checklist"] = 6] = "checklist";
|
5833
|
+
DataType[DataType["risk"] = 7] = "risk";
|
5834
|
+
DataType[DataType["deviationType"] = 8] = "deviationType";
|
5835
|
+
DataType[DataType["checklistCategory"] = 9] = "checklistCategory";
|
5836
|
+
DataType[DataType["riskFolder"] = 10] = "riskFolder";
|
5837
|
+
DataType[DataType["processInterconnected"] = 11] = "processInterconnected";
|
5838
|
+
})(DataType || (DataType = {}));
|
5839
|
+
|
5225
5840
|
class TreeComponent {
|
5226
5841
|
constructor(cdRef, domSanitizer, iconRegistry, appIconService) {
|
5227
5842
|
this.cdRef = cdRef;
|
@@ -5268,7 +5883,7 @@ class TreeComponent {
|
|
5268
5883
|
this.isChecked = false;
|
5269
5884
|
this.idCheckIcon = '';
|
5270
5885
|
this.listChildNode = [];
|
5271
|
-
this.dataType = DataType
|
5886
|
+
this.dataType = DataType;
|
5272
5887
|
this._transformer = (node, level) => {
|
5273
5888
|
var _a;
|
5274
5889
|
let checkHasChild = true;
|
@@ -5328,10 +5943,10 @@ class TreeComponent {
|
|
5328
5943
|
this.initTreeData();
|
5329
5944
|
}
|
5330
5945
|
if (changes.selectedData &&
|
5331
|
-
(changes.selectedData.currentValue.length
|
5946
|
+
(changes.selectedData.currentValue.length > 0 ||
|
5332
5947
|
JSON.stringify(changes.selectedData.currentValue) !==
|
5333
5948
|
JSON.stringify(changes.selectedData.previousValue))) {
|
5334
|
-
if (changes.selectedData.currentValue
|
5949
|
+
if (changes.selectedData.currentValue) {
|
5335
5950
|
this.checkSelected(changes.selectedData.currentValue);
|
5336
5951
|
}
|
5337
5952
|
else {
|
@@ -5539,6 +6154,14 @@ class TreeComponent {
|
|
5539
6154
|
}
|
5540
6155
|
break;
|
5541
6156
|
default:
|
6157
|
+
const index = this.treeControl.dataNodes.findIndex(node => {
|
6158
|
+
var _a, _b;
|
6159
|
+
return node.id.toLowerCase() === item.id.toLowerCase()
|
6160
|
+
&& (!item.parentId || (((_a = node.parentId) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = item.parentId) === null || _b === void 0 ? void 0 : _b.toLowerCase())));
|
6161
|
+
});
|
6162
|
+
if (index >= 0) {
|
6163
|
+
this.treeControl.dataNodes[index].disabled = true;
|
6164
|
+
}
|
5542
6165
|
return;
|
5543
6166
|
}
|
5544
6167
|
});
|
@@ -5763,11 +6386,11 @@ class TreeComponent {
|
|
5763
6386
|
checkDataTypeSelectNode(node) {
|
5764
6387
|
let itemType = -1;
|
5765
6388
|
switch (this.moduleId) {
|
5766
|
-
case DataType
|
5767
|
-
itemType = node.expandable ? DataType
|
6389
|
+
case DataType.process:
|
6390
|
+
itemType = node.expandable ? DataType.area : DataType.process;
|
5768
6391
|
break;
|
5769
|
-
case DataType
|
5770
|
-
itemType = node.expandable ? DataType
|
6392
|
+
case DataType.document:
|
6393
|
+
itemType = node.expandable ? DataType.folder : DataType.document;
|
5771
6394
|
break;
|
5772
6395
|
default:
|
5773
6396
|
itemType = this.moduleId;
|
@@ -5870,7 +6493,7 @@ class TreeComponent {
|
|
5870
6493
|
return this.treeControl.isExpanded(node) ? this.openIcon : this.closeIcon;
|
5871
6494
|
}
|
5872
6495
|
switch (this.moduleId) {
|
5873
|
-
case DataType
|
6496
|
+
case DataType.document: {
|
5874
6497
|
const nodeData = this.treeData.filter(x => { return x.rootId === node.id; });
|
5875
6498
|
if (nodeData.length > 0) {
|
5876
6499
|
switch (nodeData[0].levelType) {
|
@@ -5888,7 +6511,7 @@ class TreeComponent {
|
|
5888
6511
|
}
|
5889
6512
|
return this.treeControl.isExpanded(node) ? 'keyboard_up' : 'keyboard_down';
|
5890
6513
|
}
|
5891
|
-
case DataType
|
6514
|
+
case DataType.process:
|
5892
6515
|
return this.treeControl.isExpanded(node) ? 'process_area_outlined' : 'process_area';
|
5893
6516
|
default:
|
5894
6517
|
return this.treeControl.isExpanded(node) ? 'keyboard_up' : 'keyboard_down';
|
@@ -5896,7 +6519,7 @@ class TreeComponent {
|
|
5896
6519
|
}
|
5897
6520
|
getItemIcon(node) {
|
5898
6521
|
switch (this.moduleId) {
|
5899
|
-
case DataType
|
6522
|
+
case DataType.document:
|
5900
6523
|
switch (node.levelType) {
|
5901
6524
|
case DocumentNodeType$2.DepartmentFolder:
|
5902
6525
|
return 'document_department';
|
@@ -5909,13 +6532,13 @@ class TreeComponent {
|
|
5909
6532
|
default:
|
5910
6533
|
return 'document';
|
5911
6534
|
}
|
5912
|
-
case DataType
|
6535
|
+
case DataType.process:
|
5913
6536
|
return 'process';
|
5914
|
-
case DataType
|
6537
|
+
case DataType.checklist:
|
5915
6538
|
return 'checklist';
|
5916
|
-
case DataType
|
6539
|
+
case DataType.deviation:
|
5917
6540
|
return 'deviation';
|
5918
|
-
case DataType
|
6541
|
+
case DataType.risk:
|
5919
6542
|
return 'risk';
|
5920
6543
|
default:
|
5921
6544
|
return 'document';
|
@@ -6016,7 +6639,7 @@ QMSTreeModule.decorators = [
|
|
6016
6639
|
class RelatedContentComponent {
|
6017
6640
|
constructor() {
|
6018
6641
|
this.contents = [];
|
6019
|
-
this.dataType = DataType
|
6642
|
+
this.dataType = DataType;
|
6020
6643
|
this.imageProcess = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAxOCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAwLjVWNi41SDJWMTYuNUgxMlYxOC41SDE4VjEyLjVIMTJWMTQuNUg0VjYuNUg2VjQuNUgxMlY2LjVIMThWMC41SDEyVjIuNUg2VjAuNUgwWk00IDIuNVY0LjVIMlYyLjVINFpNMTYgMi41VjQuNUgxNFYyLjVIMTZaTTE2IDE2LjVWMTQuNUgxNFYxNi41SDE2WiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC42Ii8+DQo8L3N2Zz4NCg==';
|
6021
6644
|
}
|
6022
6645
|
ngOnInit() {
|
@@ -6050,7 +6673,7 @@ class RelatedListComponent {
|
|
6050
6673
|
this.iconRegistry = iconRegistry;
|
6051
6674
|
this.appIconService = appIconService;
|
6052
6675
|
this.relatedData = [];
|
6053
|
-
this.dataType = DataType
|
6676
|
+
this.dataType = DataType;
|
6054
6677
|
// imageProcess = '../qms-angular/src/assets/images/union.svg';
|
6055
6678
|
this.imageProcess = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAxOCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAwLjVWNi41SDJWMTYuNUgxMlYxOC41SDE4VjEyLjVIMTJWMTQuNUg0VjYuNUg2VjQuNUgxMlY2LjVIMThWMC41SDEyVjIuNUg2VjAuNUgwWk00IDIuNVY0LjVIMlYyLjVINFpNMTYgMi41VjQuNUgxNFYyLjVIMTZaTTE2IDE2LjVWMTQuNUgxNFYxNi41SDE2WiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC42Ii8+DQo8L3N2Zz4NCg==';
|
6056
6679
|
this.updateData = new EventEmitter();
|
@@ -6063,6 +6686,7 @@ class RelatedListComponent {
|
|
6063
6686
|
appIconService.registerDeviationIcon(iconRegistry, domSanitizer);
|
6064
6687
|
appIconService.registerChecklistIcon(iconRegistry, domSanitizer);
|
6065
6688
|
appIconService.registerRiskIcon(iconRegistry, domSanitizer);
|
6689
|
+
appIconService.registerProcessInterconnectedIcon(iconRegistry, domSanitizer);
|
6066
6690
|
}
|
6067
6691
|
ngOnChanges(changes) {
|
6068
6692
|
var _a;
|
@@ -6109,7 +6733,7 @@ class RelatedListComponent {
|
|
6109
6733
|
}
|
6110
6734
|
getNodeIcon(item) {
|
6111
6735
|
switch (item.itemType) {
|
6112
|
-
case DataType
|
6736
|
+
case DataType.folder: {
|
6113
6737
|
switch (item.levelType) {
|
6114
6738
|
case DocumentNodeType$2.DepartmentFolder:
|
6115
6739
|
return 'department_folder_outlined';
|
@@ -6123,7 +6747,7 @@ class RelatedListComponent {
|
|
6123
6747
|
return 'folder_outlined';
|
6124
6748
|
}
|
6125
6749
|
}
|
6126
|
-
case DataType
|
6750
|
+
case DataType.document: {
|
6127
6751
|
switch (item.levelType) {
|
6128
6752
|
case DocumentNodeType$2.DepartmentFolder:
|
6129
6753
|
return 'document_department';
|
@@ -6137,16 +6761,18 @@ class RelatedListComponent {
|
|
6137
6761
|
return 'document';
|
6138
6762
|
}
|
6139
6763
|
}
|
6140
|
-
case DataType
|
6764
|
+
case DataType.area:
|
6141
6765
|
return 'process_area_outlined';
|
6142
|
-
case DataType
|
6766
|
+
case DataType.process:
|
6143
6767
|
return 'process';
|
6144
|
-
case DataType
|
6768
|
+
case DataType.deviation:
|
6145
6769
|
return 'deviation';
|
6146
|
-
case DataType
|
6770
|
+
case DataType.checklist:
|
6147
6771
|
return 'checklist';
|
6148
|
-
case DataType
|
6772
|
+
case DataType.risk:
|
6149
6773
|
return 'risk';
|
6774
|
+
case DataType.processInterconnected:
|
6775
|
+
return 'process_interconnected';
|
6150
6776
|
default:
|
6151
6777
|
return 'folder_outlined';
|
6152
6778
|
}
|
@@ -6292,6 +6918,8 @@ class PopupData {
|
|
6292
6918
|
this.splitView = false;
|
6293
6919
|
this.moduleUploadFileName = '';
|
6294
6920
|
this.entityId = '';
|
6921
|
+
this.videoData = null;
|
6922
|
+
this.canUpdateVideoProperties = false;
|
6295
6923
|
}
|
6296
6924
|
}
|
6297
6925
|
|
@@ -6345,10 +6973,13 @@ IconSvg.UPLOAD_ICON = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" vie
|
|
6345
6973
|
|
6346
6974
|
class VideoConst {
|
6347
6975
|
}
|
6348
|
-
VideoConst.DEFAUL_MAX_VIDEO_THUMBNAIL_SIZE_KB = 500;
|
6976
|
+
VideoConst.DEFAUL_MAX_VIDEO_THUMBNAIL_SIZE_KB = 500;
|
6977
|
+
VideoConst.DEFAULT_VIDEO_WIDTH = 400;
|
6978
|
+
VideoConst.DEFAULT_VIDEO_HEIGHT = 300;
|
6349
6979
|
|
6350
6980
|
class RelatedPopupComponent {
|
6351
6981
|
constructor(cdRef, translate, dialogRef, globalService, iconRegistry, sanitizer, appIconService, elem, uploadService, dialog, data) {
|
6982
|
+
var _a;
|
6352
6983
|
this.cdRef = cdRef;
|
6353
6984
|
this.translate = translate;
|
6354
6985
|
this.dialogRef = dialogRef;
|
@@ -6376,7 +7007,7 @@ class RelatedPopupComponent {
|
|
6376
7007
|
this.singleProcessList = [];
|
6377
7008
|
this.singleDocumentList = [];
|
6378
7009
|
this.module = ModuleType$2;
|
6379
|
-
this.dataType = DataType
|
7010
|
+
this.dataType = DataType;
|
6380
7011
|
this.itemType = 0;
|
6381
7012
|
this.selectedRiskData = [];
|
6382
7013
|
this.disabledList = [];
|
@@ -6408,6 +7039,8 @@ class RelatedPopupComponent {
|
|
6408
7039
|
this.isLoadingImageFile = false;
|
6409
7040
|
this.isLoadingVideoFile = false;
|
6410
7041
|
this.imageUpload = new Image();
|
7042
|
+
this.originVideoDataSrc = '';
|
7043
|
+
this.canUpdateVideoProperties = false;
|
6411
7044
|
this.moduleId = data.moduleId;
|
6412
7045
|
this.moduleName = data.moduleName;
|
6413
7046
|
this.moduleUploadImageName = data.moduleUploadImageName;
|
@@ -6427,6 +7060,9 @@ class RelatedPopupComponent {
|
|
6427
7060
|
this.canUploadVideo = data.canUploadVideo;
|
6428
7061
|
this.maxVideoThumbnailSizeKB = (data.maxVideoThumbnailSizeKB || VideoConst.DEFAUL_MAX_VIDEO_THUMBNAIL_SIZE_KB) * 1024;
|
6429
7062
|
this.entityId = data.entityId;
|
7063
|
+
this.videoData = data.videoData;
|
7064
|
+
this.originVideoDataSrc = ((_a = data.videoData) === null || _a === void 0 ? void 0 : _a.src) || '';
|
7065
|
+
this.canUpdateVideoProperties = data.canUpdateVideoProperties;
|
6430
7066
|
appIconService.registerProcessIcon(iconRegistry, sanitizer);
|
6431
7067
|
appIconService.registerProcessAreaIcon(iconRegistry, sanitizer);
|
6432
7068
|
appIconService.registerDocumentIcon(iconRegistry, sanitizer);
|
@@ -6465,7 +7101,7 @@ class RelatedPopupComponent {
|
|
6465
7101
|
let listNodeProcess = [];
|
6466
7102
|
let listNodeDocs = [];
|
6467
7103
|
res.forEach(item => {
|
6468
|
-
if (item.itemType === DataType
|
7104
|
+
if (item.itemType === DataType.process) {
|
6469
7105
|
let newNodeProcess = new TreeModel();
|
6470
7106
|
newNodeProcess.childId = item.id;
|
6471
7107
|
newNodeProcess.childName = item.itemName;
|
@@ -6501,13 +7137,13 @@ class RelatedPopupComponent {
|
|
6501
7137
|
let selectProcess = [];
|
6502
7138
|
let selectDocument = [];
|
6503
7139
|
this.checkedNodeList.forEach(x => {
|
6504
|
-
if (x.itemType === DataType
|
7140
|
+
if (x.itemType === DataType.area || x.itemType === DataType.process) {
|
6505
7141
|
this.treeData1.forEach(item => {
|
6506
7142
|
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6507
7143
|
selectProcess.push({
|
6508
7144
|
disabled: false,
|
6509
|
-
expandable: x.itemType == DataType
|
6510
|
-
hasChild: x.itemType == DataType
|
7145
|
+
expandable: x.itemType == DataType.area ? true : false,
|
7146
|
+
hasChild: x.itemType == DataType.area ? true : false,
|
6511
7147
|
id: x.id,
|
6512
7148
|
level: 0,
|
6513
7149
|
levelType: undefined,
|
@@ -6522,8 +7158,8 @@ class RelatedPopupComponent {
|
|
6522
7158
|
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6523
7159
|
selectDocument.push({
|
6524
7160
|
disabled: false,
|
6525
|
-
expandable: x.itemType == DataType
|
6526
|
-
hasChild: x.itemType == DataType
|
7161
|
+
expandable: x.itemType == DataType.folder ? true : false,
|
7162
|
+
hasChild: x.itemType == DataType.folder ? true : false,
|
6527
7163
|
id: x.id,
|
6528
7164
|
level: 0,
|
6529
7165
|
levelType: undefined,
|
@@ -6578,6 +7214,7 @@ class RelatedPopupComponent {
|
|
6578
7214
|
return itemType;
|
6579
7215
|
}
|
6580
7216
|
removeCheckedNodeList(item) {
|
7217
|
+
this.videoData.src = this.originVideoDataSrc;
|
6581
7218
|
this.selectedData = [];
|
6582
7219
|
this.selectedData2 = [];
|
6583
7220
|
this.checkedNodeList = this.checkedNodeList.filter(x => { var _a, _b; return (x.id.toLowerCase() !== item.id.toLowerCase() || ((_a = x.parentId) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== ((_b = item.parentId) === null || _b === void 0 ? void 0 : _b.toLowerCase())); });
|
@@ -6735,13 +7372,13 @@ class RelatedPopupComponent {
|
|
6735
7372
|
let selectDocument = [];
|
6736
7373
|
if (this.checkedNodeList.length) {
|
6737
7374
|
this.checkedNodeList.forEach(x => {
|
6738
|
-
if (x.itemType === DataType
|
7375
|
+
if (x.itemType === DataType.document || x.itemType === DataType.folder) {
|
6739
7376
|
this.treeData2.forEach(item => {
|
6740
7377
|
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6741
7378
|
selectDocument.push({
|
6742
7379
|
disabled: false,
|
6743
|
-
expandable: x.itemType == DataType
|
6744
|
-
hasChild: x.itemType == DataType
|
7380
|
+
expandable: x.itemType == DataType.folder ? true : false,
|
7381
|
+
hasChild: x.itemType == DataType.folder ? true : false,
|
6745
7382
|
id: x.id,
|
6746
7383
|
level: 0,
|
6747
7384
|
levelType: undefined,
|
@@ -6895,13 +7532,13 @@ class RelatedPopupComponent {
|
|
6895
7532
|
let selectDocument = [];
|
6896
7533
|
if (this.checkedNodeList.length) {
|
6897
7534
|
this.checkedNodeList.forEach(x => {
|
6898
|
-
if (x.itemType === DataType
|
7535
|
+
if (x.itemType === DataType.area || x.itemType === DataType.process) {
|
6899
7536
|
this.treeData1.forEach(item => {
|
6900
7537
|
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6901
7538
|
selectProcess.push({
|
6902
7539
|
disabled: false,
|
6903
|
-
expandable: x.itemType == DataType
|
6904
|
-
hasChild: x.itemType == DataType
|
7540
|
+
expandable: x.itemType == DataType.area ? true : false,
|
7541
|
+
hasChild: x.itemType == DataType.area ? true : false,
|
6905
7542
|
id: x.id,
|
6906
7543
|
level: 0,
|
6907
7544
|
levelType: undefined,
|
@@ -6916,8 +7553,8 @@ class RelatedPopupComponent {
|
|
6916
7553
|
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6917
7554
|
selectDocument.push({
|
6918
7555
|
disabled: false,
|
6919
|
-
expandable: x.itemType == DataType
|
6920
|
-
hasChild: x.itemType == DataType
|
7556
|
+
expandable: x.itemType == DataType.folder ? true : false,
|
7557
|
+
hasChild: x.itemType == DataType.folder ? true : false,
|
6921
7558
|
id: x.id,
|
6922
7559
|
level: 0,
|
6923
7560
|
levelType: undefined,
|
@@ -7188,26 +7825,22 @@ class RelatedPopupComponent {
|
|
7188
7825
|
let imageRelativeUrl = "";
|
7189
7826
|
let requestUploadVideoUrl = "";
|
7190
7827
|
this.checkedNodeList.forEach(element => {
|
7191
|
-
if (element.itemType === DataType
|
7828
|
+
if (element.itemType === DataType.document) {
|
7192
7829
|
element.status = this.getStatusDocs(element.id);
|
7193
7830
|
element.breadcumbs = this.getBreadcumbAllParentDocs(element.id).slice(1).reverse();
|
7194
7831
|
element.statusName = this.getStatusName(element.id);
|
7195
7832
|
}
|
7196
|
-
if (element.itemType === DataType
|
7833
|
+
if (element.itemType === DataType.process) {
|
7197
7834
|
element.status = this.getStatusProcess(element.id);
|
7198
7835
|
element.breadcumbs = this.getBreadcumbAllParentProcess(element.id).slice(1).reverse();
|
7199
7836
|
}
|
7200
7837
|
});
|
7201
7838
|
if (!this.canUploadImage && !this.canUploadVideo)
|
7202
7839
|
return this.dialogRef.close(this.checkedNodeList);
|
7203
|
-
if (this.
|
7204
|
-
|
7205
|
-
}
|
7206
|
-
if (this.canUploadVideo && this.qmsInputVideoFile) {
|
7207
|
-
const resUploadVideo = yield this.uploadService.uploadSingleFile(this.qmsInputVideoFile.file, '', '1', this.entityId).toPromise();
|
7208
|
-
requestUploadVideoUrl = resUploadVideo.url;
|
7840
|
+
if (this.originVideoDataSrc && !this.videoData.src) {
|
7841
|
+
this.videoData.src = this.originVideoDataSrc;
|
7209
7842
|
}
|
7210
|
-
this.dialogRef.close(
|
7843
|
+
this.dialogRef.close(this.videoData);
|
7211
7844
|
});
|
7212
7845
|
}
|
7213
7846
|
getStatusName(id) {
|
@@ -7287,7 +7920,7 @@ class RelatedPopupComponent {
|
|
7287
7920
|
return (elmHeight + elmMargin);
|
7288
7921
|
}
|
7289
7922
|
getItemChipName(item) {
|
7290
|
-
if (item.itemType === DataType
|
7923
|
+
if (item.itemType === DataType.checklist || item.itemType === DataType.deviation) {
|
7291
7924
|
return (item.parentName && item.itemName !== item.parentName) ? `${item.parentName}/${item.itemName}` : item.itemName;
|
7292
7925
|
}
|
7293
7926
|
return item.itemName;
|
@@ -7297,7 +7930,7 @@ class RelatedPopupComponent {
|
|
7297
7930
|
}
|
7298
7931
|
getNodeIcon(item) {
|
7299
7932
|
switch (item.itemType) {
|
7300
|
-
case DataType
|
7933
|
+
case DataType.folder: {
|
7301
7934
|
switch (item.levelType) {
|
7302
7935
|
case DocumentNodeType$2.DepartmentFolder:
|
7303
7936
|
return 'department_folder_outlined';
|
@@ -7311,7 +7944,7 @@ class RelatedPopupComponent {
|
|
7311
7944
|
return 'folder_outlined';
|
7312
7945
|
}
|
7313
7946
|
}
|
7314
|
-
case DataType
|
7947
|
+
case DataType.document: {
|
7315
7948
|
switch (item.levelType) {
|
7316
7949
|
case DocumentNodeType$2.DepartmentFolder:
|
7317
7950
|
return 'document_department';
|
@@ -7325,15 +7958,15 @@ class RelatedPopupComponent {
|
|
7325
7958
|
return 'document';
|
7326
7959
|
}
|
7327
7960
|
}
|
7328
|
-
case DataType
|
7961
|
+
case DataType.area:
|
7329
7962
|
return 'process_area_outlined';
|
7330
|
-
case DataType
|
7963
|
+
case DataType.process:
|
7331
7964
|
return 'process';
|
7332
|
-
case DataType
|
7965
|
+
case DataType.deviation:
|
7333
7966
|
return 'deviation';
|
7334
|
-
case DataType
|
7967
|
+
case DataType.checklist:
|
7335
7968
|
return 'checklist';
|
7336
|
-
case DataType
|
7969
|
+
case DataType.risk:
|
7337
7970
|
return 'risk';
|
7338
7971
|
default:
|
7339
7972
|
return 'folder_outlined';
|
@@ -7347,25 +7980,25 @@ class RelatedPopupComponent {
|
|
7347
7980
|
}
|
7348
7981
|
getTitle(type) {
|
7349
7982
|
switch (type) {
|
7350
|
-
case DataType
|
7983
|
+
case DataType.process:
|
7351
7984
|
return this.LANG.PROCESSES;
|
7352
|
-
case DataType
|
7985
|
+
case DataType.area:
|
7353
7986
|
return this.LANG.PROCESS_AREA;
|
7354
|
-
case DataType
|
7987
|
+
case DataType.document:
|
7355
7988
|
return this.LANG.DOCUMENTS;
|
7356
|
-
case DataType
|
7989
|
+
case DataType.folder:
|
7357
7990
|
return this.LANG.FOLDER;
|
7358
|
-
case DataType
|
7991
|
+
case DataType.deviation:
|
7359
7992
|
return this.LANG.DEVIATION;
|
7360
|
-
case DataType
|
7993
|
+
case DataType.deviationType:
|
7361
7994
|
return this.LANG.DEVIATION_TYPE;
|
7362
|
-
case DataType
|
7995
|
+
case DataType.checklist:
|
7363
7996
|
return this.LANG.CHECKLIST;
|
7364
|
-
case DataType
|
7997
|
+
case DataType.checklistCategory:
|
7365
7998
|
return this.LANG.CHECKLIST_CATEGORY;
|
7366
|
-
case DataType
|
7999
|
+
case DataType.risk:
|
7367
8000
|
return this.LANG.ASSESSMENT;
|
7368
|
-
case DataType
|
8001
|
+
case DataType.riskFolder:
|
7369
8002
|
return this.LANG.FOLDER;
|
7370
8003
|
}
|
7371
8004
|
}
|
@@ -7433,11 +8066,11 @@ class RelatedPopupComponent {
|
|
7433
8066
|
}
|
7434
8067
|
canShowSearchOption(moduleId) {
|
7435
8068
|
if (this.canOnlySelectItem &&
|
7436
|
-
(moduleId === DataType
|
7437
|
-
|| moduleId === DataType
|
7438
|
-
|| moduleId === DataType
|
7439
|
-
|| (moduleId === DataType
|
7440
|
-
|| (moduleId === DataType
|
8069
|
+
(moduleId === DataType.checklistCategory
|
8070
|
+
|| moduleId === DataType.riskFolder
|
8071
|
+
|| moduleId === DataType.deviationType
|
8072
|
+
|| (moduleId === DataType.area && this.treeConfig1 && !this.treeConfig1.singleSelectedNode)
|
8073
|
+
|| (moduleId === DataType.folder && this.treeConfig2 && !this.treeConfig2.singleSelectedNode))) {
|
7441
8074
|
return false;
|
7442
8075
|
}
|
7443
8076
|
return this.getModuleFilteredOptions(moduleId).length > 0;
|
@@ -7450,8 +8083,10 @@ class RelatedPopupComponent {
|
|
7450
8083
|
});
|
7451
8084
|
if (index >= 0) {
|
7452
8085
|
this.commonCheckedList = this.commonCheckedList.filter((_, ind) => ind !== index);
|
8086
|
+
this.videoData.src = this.originVideoDataSrc;
|
7453
8087
|
}
|
7454
8088
|
else {
|
8089
|
+
this.videoData.src = `/video?id=${node.id}`;
|
7455
8090
|
this.commonCheckedList = [...this.commonCheckedList, node];
|
7456
8091
|
}
|
7457
8092
|
this.selectedData = this.commonCheckedList;
|
@@ -7500,39 +8135,50 @@ class RelatedPopupComponent {
|
|
7500
8135
|
}
|
7501
8136
|
onChangeImage(event) {
|
7502
8137
|
var _a;
|
7503
|
-
|
7504
|
-
|
7505
|
-
|
7506
|
-
|
7507
|
-
|
7508
|
-
|
7509
|
-
|
7510
|
-
|
7511
|
-
|
7512
|
-
|
7513
|
-
|
7514
|
-
|
7515
|
-
|
8138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
8139
|
+
this.isLoadingImageFile = true;
|
8140
|
+
if (!((_a = this.qmsInputImageFile) === null || _a === void 0 ? void 0 : _a.isSuccessful) && this.maxVideoThumbnailSizeKB) {
|
8141
|
+
const dialogRef = this.dialog.open(QMSUploadFileErrorDialog, {
|
8142
|
+
width: '500px',
|
8143
|
+
data: {
|
8144
|
+
fileNames: this.qmsInputImageFile.typeError == FileErrorType.notSupportedExtension ? [this.qmsInputImageFile.fileName] : [],
|
8145
|
+
acceptedExtension: this.acceptExtensions,
|
8146
|
+
overLimitFiles: this.qmsInputImageFile.typeError == FileErrorType.exceedMaxSize ? [this.qmsInputImageFile.fileName] : [],
|
8147
|
+
fileSizeLimit: this.maxVideoThumbnailSizeKB / 1024,
|
8148
|
+
fileSizeLimitUnit: 'KB'
|
8149
|
+
}
|
8150
|
+
});
|
8151
|
+
dialogRef.afterClosed().subscribe(() => {
|
8152
|
+
this.qmsInputImageFile = null;
|
8153
|
+
});
|
8154
|
+
}
|
8155
|
+
const readerImage = new FileReader();
|
8156
|
+
readerImage.readAsDataURL(this.qmsInputImageFile.file);
|
8157
|
+
readerImage.onload = (event) => __awaiter(this, void 0, void 0, function* () {
|
8158
|
+
this.imageUpload.src = event.target.result.toString();
|
7516
8159
|
});
|
7517
|
-
|
7518
|
-
|
7519
|
-
readerImage.readAsDataURL(this.qmsInputImageFile.file);
|
7520
|
-
readerImage.onload = (event) => __awaiter(this, void 0, void 0, function* () {
|
7521
|
-
this.imageUpload.src = event.target.result.toString();
|
8160
|
+
this.videoData.poster = yield this.uploadService.uploadImage(this.qmsInputImageFile.file, this.imageUpload.height, this.imageUpload.width).toPromise();
|
8161
|
+
this.isLoadingImageFile = false;
|
7522
8162
|
});
|
7523
8163
|
}
|
7524
8164
|
onChangeFile(event) {
|
7525
|
-
this
|
7526
|
-
|
7527
|
-
|
8165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
8166
|
+
this.isLoadingVideoFile = true;
|
8167
|
+
this.checkedNodeList = [];
|
8168
|
+
this.dataTrees.toArray()[0].checklistSelection.clear();
|
8169
|
+
this.dataTrees.toArray()[0].treeControl.dataNodes.map(x => x.disabled = true);
|
8170
|
+
const resUploadVideo = yield this.uploadService.uploadSingleFile(this.qmsInputVideoFile.file, '', '1', this.entityId).toPromise();
|
8171
|
+
this.videoData.src = resUploadVideo.url;
|
8172
|
+
this.isLoadingVideoFile = false;
|
8173
|
+
});
|
7528
8174
|
}
|
7529
8175
|
}
|
7530
8176
|
RelatedPopupComponent.decorators = [
|
7531
8177
|
{ type: Component, args: [{
|
7532
8178
|
selector: 'qms-related-popup',
|
7533
|
-
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 <div *ngIf=\"canUploadImage\" class=\"selected-image\">\r\n <span class=\"module-title\">{{ moduleUploadImageName | uppercase }}</span>\r\n <form>\r\n <mat-form-field qms-form qms-file-upload appearance=\"fill\" class=\"example-width input-upload\">\r\n <mat-icon matPrefix svgIcon=\"upload\"></mat-icon>\r\n <input matInput placeholder=\"Upload file\" [formControl]=\"qmsInputImageType\" qms-file-upload-display\r\n #fileDisplay value=\"{{qmsInputImageFile? qmsInputImageFile.fileName : ''}}\"\r\n [attr.disabled]=\"isLoadingImageFile ? 'disabled' : null\" readonly>\r\n <input hidden type=\"file\" [(inputFile)]=\"qmsInputImageFile\" qms-file-upload-selector #fileSelector\r\n [acceptExtensions]=\"acceptExtensions\"\r\n accept=\".pjp, .jpg, .pjpeg, .jpeg, .jfif, .png, .gif, .bmp, .webp, .tif, .tiff\"\r\n [maxSize]=\"maxVideoThumbnailSizeKB\" (change)=\"onChangeImage($event)\">\r\n\r\n <mat-progress-spinner matSuffix mode=\"indeterminate\" diameter='20'\r\n *ngIf=\"isLoadingImageFile\"></mat-progress-spinner>\r\n <div matSuffix qms-input-clear *ngIf=\"qmsInputImageFile && qmsInputImageFile.fileName\">\r\n <button qms-btn-icon color=\"light\" (click)=\"clearQMSInputImageFile()\" [disabled]=\"isLoadingImageFile\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <mat-error *ngIf=\"qmsInputImageFile && qmsInputImageFile.typeError == 1\">\r\n {{ LANG.QMSCKEDITOR.EXTENSION_IS_NOT_SUPPORTED }}\r\n </mat-error>\r\n </mat-form-field>\r\n </form>\r\n </div>\r\n <div *ngIf=\"canUploadVideo\" class=\"selected-image\">\r\n <span class=\"module-title\">{{ moduleUploadFileName | uppercase }}</span>\r\n <form>\r\n <mat-form-field qms-form qms-file-upload appearance=\"fill\" class=\"example-width input-upload\">\r\n <mat-icon matPrefix svgIcon=\"upload\"></mat-icon>\r\n <input matInput placeholder=\"Upload file\" [formControl]=\"qmsInputVideoType\" qms-file-upload-display\r\n #fileDisplay value=\"{{qmsInputVideoFile? qmsInputVideoFile.fileName : ''}}\"\r\n [attr.disabled]=\"isLoadingVideoFile ? 'disabled' : null\" readonly>\r\n <input hidden type=\"file\" [(inputFile)]=\"qmsInputVideoFile\" qms-file-upload-selector #fileSelector\r\n [acceptExtensions]=\"acceptExtensionsForVideo\" accept=\".mp4\" (change)=\"onChangeFile($event)\">\r\n\r\n <mat-progress-spinner matSuffix mode=\"indeterminate\" diameter='20'\r\n *ngIf=\"isLoadingVideoFile\"></mat-progress-spinner>\r\n <div matSuffix qms-input-clear *ngIf=\"qmsInputVideoFile && qmsInputVideoFile.fileName\">\r\n <button qms-btn-icon color=\"light\" (click)=\"clearQMSInputVideoFile()\" [disabled]=\"isLoadingVideoFile\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <mat-error *ngIf=\"qmsInputVideoFile && qmsInputVideoFile.typeError == 1\">\r\n {{ LANG.QMSCKEDITOR.ACCEPT_MP4_ONLY }}\r\n </mat-error>\r\n </mat-form-field>\r\n </form>\r\n </div>\r\n <span class=\"module-name\">{{ 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 type=\"text\" placeholder=\"{{ LANG.SEARCH }}\" matInput [formControl]=\"myControl\" [matAutocomplete]=\"auto\" />\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 #auto=\"matAutocomplete\" class=\"mat-autocomplete_related-viewport\"\r\n (optionSelected)=\"selectRelated($event.option.value)\" [displayWith]=\"displayWhenSelectRelatedOption\">\r\n <cdk-virtual-scroll-viewport qms-scrollbar itemSize=\"10\" [class.related-viewport]=\"isInputValue\"\r\n *ngIf=\"filteredOptions.length\">\r\n <ng-container *ngFor=\"let type of searchOrder\">\r\n <div class=\"search__module-result\" *ngIf=\"canShowSearchOption(type.value)\">\r\n <span class=\"search__module-title\">{{ getTitle(type.value) }}</span>\r\n <mat-option class=\"search__option\" *ngFor=\"let option of getModuleFilteredOptions(type.value)\"\r\n [value]=\"option\" [disabled]=\"option.disabled\">\r\n <qms-list-item type=\"image-square\">\r\n <mat-icon leading-icon type=\"image-square\" [svgIcon]=\"getNodeIcon(option)\"></mat-icon>\r\n <div qms-list-header>\r\n <div qms-line type=\"caption\" qms-tool-tip=\"{{\r\n isEllipsisActive(searchItemResult) ? option.parentName : ''\r\n }}\" mode=\"dark\" *ngIf=\"getParentName(option)\">\r\n <span #searchItemResult class=\"search__result__parent-name\">\r\n {{ option.parentName }}\r\n </span>\r\n </div>\r\n <div qms-line type=\"subtitle\" class=\"search__option-name\">\r\n {{ option.itemName }}\r\n </div>\r\n <div class=\"caption\" *ngIf=\"option.breadcumbs && option.breadcumbs.length\">\r\n <qms-breadcrumb class=\"breadcrumb-container\" type=\"table\" numDisplayItem=\"1\"\r\n [nodes]=\"option.breadcumbs\">\r\n </qms-breadcrumb>\r\n </div>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"getItemId(option)\">\r\n <span>\r\n <mat-icon class=\"material-icons-outlined search__description-icon\">local_offer</mat-icon>\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 class=\"qms-scrollbar qmslib_related_popup_content\" [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length,\r\n panel__content_height_with_upload: canUploadImage && !checkedNodeList.length,\r\n panel__content_item_height_with_upload: canUploadImage && checkedNodeList.length,\r\n 'col-6': splitView,\r\n 'col-12': !splitView\r\n }\">\r\n <ng-container *ngIf=\"treeData1.length > 0\">\r\n <mat-expansion-panel hideToggle id=\"qmslib_related_popup_common_001\" [expanded]=\"isCommonExpanded\"\r\n (opened)=\"isCommonExpanded = true\" (closed)=\"isCommonExpanded = false\" class=\"panel-tree\">\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 <mat-panel-title *ngIf=\"moduleId === module.deviation\">\r\n {{ LANG.DEVIATION | uppercase }}\r\n </mat-panel-title>\r\n <mat-panel-title *ngIf=\"moduleId === module.checklist\">\r\n {{ LANG.CHECKLIST | uppercase }}\r\n </mat-panel-title>\r\n <mat-panel-title *ngIf=\"moduleId === module.risk\">\r\n {{ LANG.ASSESSMENT | 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 [treeData]=\"treeData1\" [treeConfig]=\"treeConfig1\" [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\" [disabledList]=\"disabledList\"\r\n (checkBoxEvent)=\"getCommonCheckedNode($event)\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.area)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\" (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n [expandOnTitleClick]=\"!splitView\" [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeProcess($event)\"></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"treeData2.length > 0\">\r\n <div *ngIf=\"moduleId === module.documentProcess\" class=\"line__divider\"></div>\r\n\r\n <mat-expansion-panel hideToggle *ngIf=\"moduleId === module.documentProcess\"\r\n id=\"qmslib_related_popup_document_001\" [expanded]=\"isDocumentExpanded\" (opened)=\"isDocumentExpanded = true\"\r\n (closed)=\"isDocumentExpanded = false\" class=\"panel-tree\">\r\n <mat-expansion-panel-header class=\"padding-5\">\r\n <mat-panel-title>\r\n {{ LANG.DOCUMENTS | 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 isDocumentExpanded\r\n ? \"keyboard_arrow_up\"\r\n : \"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 [treeData]=\"treeData2\" [treeConfig]=\"treeConfig2\" [selectedData]=\"selectedData2\"\r\n [disabledList]=\"disabledList2\" (checkBoxEvent)=\"getDocumentCheckedNode($event)\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.folder)\"\r\n (selectNodeEvent)=\"selectNodeTree2Event($event)\" (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n [expandOnTitleClick]=\"!splitView\" [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeDocument($event)\"></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\r\n </ng-container>\r\n </div>\r\n <div *ngIf=\"splitView\" class=\"qms-scrollbar qmslib-related-popup-splitview qmslib_related_popup_content col-6\"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length\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 qms-group-options [disabled]=\"node.disabled\" color=\"default\" [checked]=\"isNodeSelected(node)\"\r\n (change)=\"toggleSelectItem(node)\"></mat-checkbox>\r\n <mat-icon class=\"mat-icon-rtl-mirror material-icons-outlined\" [svgIcon]=\"getNodeIcon(node)\"></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 class=\"row\">\r\n <div class=\"col-12 pr-0 pe-0\">\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 *ngIf=\"item.itemName\" mat-button class=\"related__item__content\" qms-tool-tip=\"{{\r\n isEllipsisActive(itemName) ? getItemChipName(item) : ''\r\n }}\" mode=\"dark\">\r\n <span class=\"related__item__content_name\" #itemName>{{\r\n getItemChipName(item)\r\n }}</span>\r\n <mat-icon *ngIf=\"!(treeConfig1?.selectOne || treeConfig2?.selectOne)\"\r\n (click)=\"removeCheckedNodeList(item)\">cancel</mat-icon>\r\n </button>\r\n </div>\r\n </div>\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 *ngIf=\"!checkedNodeList.length\" qms-btn style=\"margin-top: 7px\" (click)=\"onAddClick()\">\r\n {{ LANG.ADD }}\r\n </button>\r\n <button *ngIf=\"checkedNodeList.length\" qms-btn style=\"margin-top: 0px\" (click)=\"onAddClick()\">\r\n {{ LANG.ADD }} ({{ checkedNodeList.length }})\r\n </button>\r\n <button qms-btn-text [ngStyle]=\"{ 'margin-top': checkedNodeList.length ? '0px' : '7px' }\" (click)=\"onCloseClick()\">\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </div>\r\n</div>",
|
8179
|
+
template: "<div id=\"qmslib_related_popup\" class=\"qmslib__related__popup__container\">\n <div id=\"qmslib_related_popup_header\">\n <span mat-icon-button class=\"button__close\" (click)=\"onCloseClick()\">\n <mat-icon mat-icon>close</mat-icon>\n </span>\n <div *ngIf=\"canUploadImage || canUploadVideo || canUpdateVideoProperties\" id=\"qmslib_related_popup_header_001\"\n [ngClass]=\"{\n panel_header_height_with_video_upload: canUploadVideo,\n panel_header_height_without_video_upload: !canUploadVideo && canUploadImage && canUpdateVideoProperties\n }\" mat-dialog-content class=\"row\">\n <div *ngIf=\"canUploadImage\" class=\"selected-image col-12\">\n <div class=\"row d-flex align-items-center\">\n <div class=\"col-md-4\">{{ moduleUploadImageName | uppercase }}</div>\n <div class=\"col-md-8\">\n <form>\n <mat-form-field qms-form qms-file-upload appearance=\"fill\" class=\"example-width input-upload\">\n <mat-icon matPrefix svgIcon=\"upload\"></mat-icon>\n <input matInput placeholder=\"Upload file\" [formControl]=\"qmsInputImageType\" qms-file-upload-display\n #fileDisplay value=\"{{qmsInputImageFile? qmsInputImageFile.fileName : ''}}\"\n [attr.disabled]=\"isLoadingImageFile ? 'disabled' : null\" readonly>\n <input hidden type=\"file\" [(inputFile)]=\"qmsInputImageFile\" qms-file-upload-selector #fileSelector\n [acceptExtensions]=\"acceptExtensions\"\n accept=\".pjp, .jpg, .pjpeg, .jpeg, .jfif, .png, .gif, .bmp, .webp, .tif, .tiff\"\n [maxSize]=\"maxVideoThumbnailSizeKB\" (change)=\"onChangeImage($event)\">\n\n <mat-progress-spinner matSuffix mode=\"indeterminate\" diameter='20'\n *ngIf=\"isLoadingImageFile\"></mat-progress-spinner>\n <div matSuffix qms-input-clear *ngIf=\"qmsInputImageFile && qmsInputImageFile.fileName\">\n <button qms-btn-icon color=\"light\" (click)=\"clearQMSInputImageFile()\" [disabled]=\"isLoadingImageFile\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <mat-error *ngIf=\"qmsInputImageFile && qmsInputImageFile.typeError == 1\">\n {{ LANG.QMSCKEDITOR.EXTENSION_IS_NOT_SUPPORTED }}\n </mat-error>\n </mat-form-field>\n </form>\n </div>\n </div>\n <div class=\"row d-flex align-items-center\">\n <div class=\"col-md-4\">{{ LANG.QMSCKEDITOR.VIDEO_IMAGE | uppercase}}:</div>\n <div class=\"col-md-8\">\n <mat-form-field class=\"example-width input-upload\">\n <input matInput [(ngModel)]=\"videoData.poster\">\n </mat-form-field>\n </div>\n </div>\n </div>\n <div class=\"selected-image col-12\">\n <div *ngIf=\"canUploadVideo\" class=\"row d-flex align-items-center\">\n <div class=\"col-md-4\">{{ moduleUploadFileName | uppercase }}</div>\n <div class=\"col-md-8\">\n <form>\n <mat-form-field qms-form qms-file-upload appearance=\"fill\" class=\"example-width input-upload\">\n <mat-icon matPrefix svgIcon=\"upload\"></mat-icon>\n <input matInput placeholder=\"Upload file\" [formControl]=\"qmsInputVideoType\" qms-file-upload-display\n #fileDisplay value=\"{{qmsInputVideoFile? qmsInputVideoFile.fileName : ''}}\"\n [attr.disabled]=\"isLoadingVideoFile ? 'disabled' : null\" readonly>\n <input hidden type=\"file\" [(inputFile)]=\"qmsInputVideoFile\" qms-file-upload-selector #fileSelector\n [acceptExtensions]=\"acceptExtensionsForVideo\" accept=\".mp4\" (change)=\"onChangeFile($event)\">\n\n <mat-progress-spinner matSuffix mode=\"indeterminate\" diameter='20'\n *ngIf=\"isLoadingVideoFile\"></mat-progress-spinner>\n <div matSuffix qms-input-clear *ngIf=\"qmsInputVideoFile && qmsInputVideoFile.fileName\">\n <button qms-btn-icon color=\"light\" (click)=\"clearQMSInputVideoFile()\" [disabled]=\"isLoadingVideoFile\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <mat-error *ngIf=\"qmsInputVideoFile && qmsInputVideoFile.typeError == 1\">\n {{ LANG.QMSCKEDITOR.ACCEPT_MP4_ONLY }}\n </mat-error>\n </mat-form-field>\n </form>\n </div>\n </div>\n <div class=\"row d-flex align-items-center\" *ngIf=\"canUpdateVideoProperties\">\n <div class=\"col-md-4\">{{ LANG.QMSCKEDITOR.VIDEO_SOURCE | uppercase}}:</div>\n <div class=\"col-md-8\">\n <mat-form-field class=\"example-width input-upload\">\n <input matInput [(ngModel)]=\"videoData.src\">\n </mat-form-field>\n </div>\n </div>\n </div>\n <div *ngIf=\"canUpdateVideoProperties\" class=\"selected-image col-12\">\n <div class=\"row d-flex align-items-center\">\n <div class=\"col-md-4\">\n <mat-form-field class=\"example-width input-upload\">\n <mat-label>{{ LANG.WIDTH }}</mat-label>\n <input type=\"number\" matInput [(ngModel)]=\"videoData.width\">\n </mat-form-field>\n </div>\n <div class=\"col-md-4\">\n <mat-form-field class=\"example-width input-upload\">\n <mat-label>{{ LANG.HEIGHT }}</mat-label>\n <input type=\"number\" matInput [(ngModel)]=\"videoData.height\">\n </mat-form-field>\n </div>\n <div class=\"col-md-4\">\n <mat-form-field class=\"example-width input-upload\">\n <mat-label>Id</mat-label>\n <input matInput [(ngModel)]=\"videoData.id\">\n </mat-form-field>\n </div>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <span class=\"module-name\">{{ moduleName | uppercase }}</span>\n </div>\n </div>\n\n <div id=\"qmslib_related_popup_search\" class=\"input__field\">\n <input type=\"text\" placeholder=\"{{ LANG.SEARCH }}\" matInput [formControl]=\"myControl\" [matAutocomplete]=\"auto\" />\n <mat-icon>search</mat-icon>\n </div>\n\n <div class=\"line__divider\"></div>\n\n <mat-autocomplete #auto=\"matAutocomplete\" class=\"mat-autocomplete_related-viewport\"\n (optionSelected)=\"selectRelated($event.option.value)\" [displayWith]=\"displayWhenSelectRelatedOption\">\n <cdk-virtual-scroll-viewport qms-scrollbar itemSize=\"10\" [class.related-viewport]=\"isInputValue\"\n *ngIf=\"filteredOptions.length\">\n <ng-container *ngFor=\"let type of searchOrder\">\n <div class=\"search__module-result\" *ngIf=\"canShowSearchOption(type.value)\">\n <span class=\"search__module-title\">{{ getTitle(type.value) }}</span>\n <mat-option class=\"search__option\" *ngFor=\"let option of getModuleFilteredOptions(type.value)\"\n [value]=\"option\" [disabled]=\"option.disabled\">\n <qms-list-item type=\"image-square\">\n <mat-icon leading-icon type=\"image-square\" [svgIcon]=\"getNodeIcon(option)\"></mat-icon>\n <div qms-list-header>\n <div qms-line type=\"caption\" qms-tool-tip=\"{{\n isEllipsisActive(searchItemResult) ? option.parentName : ''\n }}\" mode=\"dark\" *ngIf=\"getParentName(option)\">\n <span #searchItemResult class=\"search__result__parent-name\">\n {{ option.parentName }}\n </span>\n </div>\n <div qms-line type=\"subtitle\" class=\"search__option-name\">\n {{ option.itemName }}\n </div>\n <div class=\"caption\" *ngIf=\"option.breadcumbs && option.breadcumbs.length\">\n <qms-breadcrumb class=\"breadcrumb-container\" type=\"table\" numDisplayItem=\"1\"\n [nodes]=\"option.breadcumbs\">\n </qms-breadcrumb>\n </div>\n </div>\n <div qms-line color=\"default-subtitle\" *ngIf=\"getItemId(option)\">\n <span>\n <mat-icon class=\"material-icons-outlined search__description-icon\">local_offer</mat-icon>\n </span>\n {{ getItemId(option) }}\n </div>\n </qms-list-item>\n </mat-option>\n </div>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n </mat-autocomplete>\n\n <div class=\"row\">\n <div class=\"qms-scrollbar qmslib_related_popup_content\" [ngClass]=\"{\n panel__content_item: checkedNodeList.length,\n panel__content: !checkedNodeList.length,\n panel__content_height_with_upload: canUploadImage && !checkedNodeList.length,\n panel__content_item_height_with_upload: canUploadImage && checkedNodeList.length,\n 'col-6': splitView,\n 'col-12': !splitView\n }\">\n <ng-container *ngIf=\"treeData1.length > 0\">\n <mat-expansion-panel hideToggle id=\"qmslib_related_popup_common_001\" [expanded]=\"isCommonExpanded\"\n (opened)=\"isCommonExpanded = true\" (closed)=\"isCommonExpanded = false\" class=\"panel-tree\">\n <mat-expansion-panel-header class=\"padding-5\">\n <mat-panel-title *ngIf=\"moduleId === module.documentProcess\">\n {{ LANG.PROCESSES | uppercase }}\n </mat-panel-title>\n <mat-panel-title *ngIf=\"moduleId === module.deviation\">\n {{ LANG.DEVIATION | uppercase }}\n </mat-panel-title>\n <mat-panel-title *ngIf=\"moduleId === module.checklist\">\n {{ LANG.CHECKLIST | uppercase }}\n </mat-panel-title>\n <mat-panel-title *ngIf=\"moduleId === module.risk\">\n {{ LANG.ASSESSMENT | uppercase }}\n </mat-panel-title>\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\n <mat-icon>\n {{\n isCommonExpanded ? \"keyboard_arrow_up\" : \"keyboard_arrow_down\"\n }}\n </mat-icon>\n </button>\n </mat-expansion-panel-header>\n <div id=\"qmslib_related_popup_common_002\">\n <qms-tree [treeData]=\"treeData1\" [treeConfig]=\"treeConfig1\" [selectedData]=\"selectedData\"\n [selectedRiskData]=\"selectedRiskData\" [disabledList]=\"disabledList\"\n (checkBoxEvent)=\"getCommonCheckedNode($event)\"\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.area)\"\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\" (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\n [expandOnTitleClick]=\"!splitView\" [parentNodeOnClick]=\"parentNodeSelected\"\n (treeControlNodes)=\"selectTreeControlNodeProcess($event)\"></qms-tree>\n </div>\n </mat-expansion-panel>\n </ng-container>\n\n <ng-container *ngIf=\"treeData2.length > 0\">\n <div *ngIf=\"moduleId === module.documentProcess\" class=\"line__divider\"></div>\n\n <mat-expansion-panel hideToggle *ngIf=\"moduleId === module.documentProcess\"\n id=\"qmslib_related_popup_document_001\" [expanded]=\"isDocumentExpanded\" (opened)=\"isDocumentExpanded = true\"\n (closed)=\"isDocumentExpanded = false\" class=\"panel-tree\">\n <mat-expansion-panel-header class=\"padding-5\">\n <mat-panel-title>\n {{ LANG.DOCUMENTS | uppercase }}\n </mat-panel-title>\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\n <mat-icon>\n {{\n isDocumentExpanded\n ? \"keyboard_arrow_up\"\n : \"keyboard_arrow_down\"\n }}\n </mat-icon>\n </button>\n </mat-expansion-panel-header>\n <div id=\"qmslib_related_popup_document_002\">\n <qms-tree [treeData]=\"treeData2\" [treeConfig]=\"treeConfig2\" [selectedData]=\"selectedData2\"\n [disabledList]=\"disabledList2\" (checkBoxEvent)=\"getDocumentCheckedNode($event)\"\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.folder)\"\n (selectNodeEvent)=\"selectNodeTree2Event($event)\" (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\n [expandOnTitleClick]=\"!splitView\" [parentNodeOnClick]=\"parentNodeSelected\"\n (treeControlNodes)=\"selectTreeControlNodeDocument($event)\"></qms-tree>\n </div>\n </mat-expansion-panel>\n </ng-container>\n </div>\n <div *ngIf=\"splitView\" class=\"qms-scrollbar qmslib-related-popup-splitview qmslib_related_popup_content col-6\"\n [ngClass]=\"{\n panel__content_item: checkedNodeList.length,\n panel__content: !checkedNodeList.length\n }\">\n <div class=\"splitview-header\" *ngIf=\"selectedFolder\">\n {{ splitViewTitle }}\n </div>\n <div class=\"expand-node\" *ngFor=\"let node of itemInSplitview\">\n <mat-checkbox qms-group-options [disabled]=\"node.disabled\" color=\"default\" [checked]=\"isNodeSelected(node)\"\n (change)=\"toggleSelectItem(node)\"></mat-checkbox>\n <mat-icon class=\"mat-icon-rtl-mirror material-icons-outlined\" [svgIcon]=\"getNodeIcon(node)\"></mat-icon>\n <span class=\"text-node\">{{ node.itemName }}</span>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"checkedNodeList.length\" class=\"line__divider\"></div>\n\n <div class=\"row\">\n <div class=\"col-12 pr-0 pe-0\">\n <div *ngIf=\"checkedNodeList.length\" class=\"panel__item qms-scrollbar\">\n <div class=\"related__item__inline\" *ngFor=\"let item of checkedNodeList\">\n <button *ngIf=\"item.itemName\" mat-button class=\"related__item__content\" qms-tool-tip=\"{{\n isEllipsisActive(itemName) ? getItemChipName(item) : ''\n }}\" mode=\"dark\">\n <span class=\"related__item__content_name\" #itemName>{{\n getItemChipName(item)\n }}</span>\n <mat-icon *ngIf=\"!(treeConfig1?.selectOne || treeConfig2?.selectOne)\"\n (click)=\"removeCheckedNodeList(item)\">cancel</mat-icon>\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"line__divider\"></div>\n\n <div class=\"confirm__button__groups\">\n <button *ngIf=\"!checkedNodeList.length\" qms-btn style=\"margin-top: 7px\"\n [disabled]=\"isLoadingVideoFile || isLoadingImageFile\" (click)=\"onAddClick()\">\n {{ LANG.ADD }}\n </button>\n <button *ngIf=\"checkedNodeList.length\" qms-btn style=\"margin-top: 0px\"\n [disabled]=\"isLoadingVideoFile || isLoadingImageFile\" (click)=\"onAddClick()\">\n {{ LANG.ADD }} ({{ checkedNodeList.length }})\n </button>\n <button qms-btn-text [ngStyle]=\"{ 'margin-top': checkedNodeList.length ? '0px' : '7px' }\" (click)=\"onCloseClick()\">\n {{ LANG.CANCEL }}\n </button>\n </div>\n</div>",
|
7534
8180
|
encapsulation: ViewEncapsulation.None,
|
7535
|
-
styles: ["::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background:rgba(0,0,0,.12);background-clip:content-box}::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms__popup .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qms__danger button{border:none;color:var(--text-white);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:var(--button-red-background);margin-left:10px}.qms__danger .yellow{background-color:var(--button-yellow-background);margin-left:10px;color:var(--popup-title-color)}.qms__danger .green{background-color:var(--button-green-background);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:var(--button-background)}.confirm__button__groups .confirm:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.confirm__button__groups .confirm:disabled{cursor:not-allowed}.confirm__button__groups .cancel{background:var(--button-background)}.confirm__button__groups .cancel:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.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:var(--background-input-text)}.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_height_with_upload{height:380px}.qmslib__related__popup__container .panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel__content_item_height_with_upload{height:257px}.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:var(--related-item-background);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:var(--related-mat-icon-color);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{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}.qmslib__related__popup__container .module-name{margin-top:10px;display:block}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-container .qms-breadcrumb-item .mat-icon{font-size:16px!important;padding-bottom:1px}cdk-virtual-scroll-viewport .search__module-result .mat-option[aria-disabled=true] .breadcrumb-container .qms-breadcrumb-item .mat-icon,cdk-virtual-scroll-viewport .search__module-result .mat-option[aria-disabled=true] .breadcrumb-container .qms-breadcrumb-item-text,cdk-virtual-scroll-viewport .search__module-result .mat-option[aria-disabled=true] .subtitle{color:rgba(0,0,0,.38)}cdk-virtual-scroll-viewport .search__module-result svg{display:block}#qmslib_related_popup_header_001{
|
8181
|
+
styles: ["::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background:rgba(0,0,0,.12);background-clip:content-box}::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms__popup .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qms__danger button{border:none;color:var(--text-white);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:var(--button-red-background);margin-left:10px}.qms__danger .yellow{background-color:var(--button-yellow-background);margin-left:10px;color:var(--popup-title-color)}.qms__danger .green{background-color:var(--button-green-background);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:var(--button-background)}.confirm__button__groups .confirm:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.confirm__button__groups .confirm:disabled{cursor:not-allowed}.confirm__button__groups .cancel{background:var(--button-background)}.confirm__button__groups .cancel:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.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:var(--background-input-text)}.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_height_with_upload{height:380px}.qmslib__related__popup__container .panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel__content_item_height_with_upload{height:257px}.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:var(--related-item-background);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:var(--related-mat-icon-color);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{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}.qmslib__related__popup__container .module-name{margin-top:10px;display:block;font-weight:600;font-family:Raleway}.qmslib__related__popup__container input::-webkit-inner-spin-button,.qmslib__related__popup__container input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.qmslib__related__popup__container input[type=number]{-moz-appearance:textfield}.qmslib__related__popup__container .panel_header_height_with_video_upload{height:350px}.qmslib__related__popup__container .panel_header_height_without_video_upload{height:300px}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-container .qms-breadcrumb-item .mat-icon{font-size:16px!important;padding-bottom:1px}cdk-virtual-scroll-viewport .search__module-result .mat-option[aria-disabled=true] .breadcrumb-container .qms-breadcrumb-item .mat-icon,cdk-virtual-scroll-viewport .search__module-result .mat-option[aria-disabled=true] .breadcrumb-container .qms-breadcrumb-item-text,cdk-virtual-scroll-viewport .search__module-result .mat-option[aria-disabled=true] .subtitle{color:rgba(0,0,0,.38)}cdk-virtual-scroll-viewport .search__module-result svg{display:block}#qmslib_related_popup_header_001{width:100%;padding:0;font-weight:600;font-family:Raleway;margin:0}#qmslib_related_popup_header_001 .selected-image{padding-bottom:10px;width:100%}#qmslib_related_popup_header_001 .selected-image .input-upload,#qmslib_related_popup_header_001 .selected-image .module-name{width:100%;height:60px}.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}"]
|
7536
8182
|
},] }
|
7537
8183
|
];
|
7538
8184
|
RelatedPopupComponent.ctorParameters = () => [
|
@@ -7602,7 +8248,7 @@ class RiskAnalysisComponent {
|
|
7602
8248
|
showCheckBox: true,
|
7603
8249
|
allowMultipleCheck: true,
|
7604
8250
|
onlyCheckBoxForChild: false,
|
7605
|
-
moduleId: DataType
|
8251
|
+
moduleId: DataType.risk,
|
7606
8252
|
openIcon: 'keyboard_arrow_up',
|
7607
8253
|
openIconColor: '#1954A9',
|
7608
8254
|
closeIcon: 'keyboard_arrow_down',
|
@@ -7953,6 +8599,7 @@ QMSRelatedModule.decorators = [
|
|
7953
8599
|
RelatedListComponent
|
7954
8600
|
],
|
7955
8601
|
imports: [
|
8602
|
+
FormsModule,
|
7956
8603
|
CommonModule,
|
7957
8604
|
MatTreeModule,
|
7958
8605
|
MatIconModule,
|
@@ -8465,20 +9112,6 @@ QMSCKEditorCommonService.decorators = [
|
|
8465
9112
|
];
|
8466
9113
|
QMSCKEditorCommonService.ctorParameters = () => [];
|
8467
9114
|
|
8468
|
-
var DataType$1;
|
8469
|
-
(function (DataType) {
|
8470
|
-
DataType[DataType["process"] = 2] = "process";
|
8471
|
-
DataType[DataType["document"] = 1] = "document";
|
8472
|
-
DataType[DataType["area"] = 3] = "area";
|
8473
|
-
DataType[DataType["folder"] = 4] = "folder";
|
8474
|
-
DataType[DataType["deviation"] = 5] = "deviation";
|
8475
|
-
DataType[DataType["checklist"] = 6] = "checklist";
|
8476
|
-
DataType[DataType["risk"] = 7] = "risk";
|
8477
|
-
DataType[DataType["deviationType"] = 8] = "deviationType";
|
8478
|
-
DataType[DataType["checklistCategory"] = 9] = "checklistCategory";
|
8479
|
-
DataType[DataType["riskFolder"] = 10] = "riskFolder";
|
8480
|
-
})(DataType$1 || (DataType$1 = {}));
|
8481
|
-
|
8482
9115
|
class NewTreeNode {
|
8483
9116
|
}
|
8484
9117
|
|
@@ -8494,6 +9127,7 @@ function buildArrayTree$1(obj, level) {
|
|
8494
9127
|
node.parentId = keyObj["parentId"];
|
8495
9128
|
node.levelType = keyObj["levelType"];
|
8496
9129
|
node.expandable = keyObj["expandable"];
|
9130
|
+
node.itemType = keyObj["itemType"];
|
8497
9131
|
if (value != null) {
|
8498
9132
|
if (typeof value === 'object') {
|
8499
9133
|
node.children = this.buildArrayTree(value, level + 1);
|
@@ -8535,7 +9169,8 @@ function findParent$1(item, array) {
|
|
8535
9169
|
name: item.name,
|
8536
9170
|
parentId: item.parentId,
|
8537
9171
|
levelType: item.levelType,
|
8538
|
-
expandable: item.expandable
|
9172
|
+
expandable: item.expandable,
|
9173
|
+
itemType: item.itemType
|
8539
9174
|
};
|
8540
9175
|
objParent[json.stringify(parentKey)] = null;
|
8541
9176
|
});
|
@@ -8544,7 +9179,8 @@ function findParent$1(item, array) {
|
|
8544
9179
|
name: item.name,
|
8545
9180
|
parentId: '',
|
8546
9181
|
levelType: item.levelType,
|
8547
|
-
expandable: item.expandable
|
9182
|
+
expandable: item.expandable,
|
9183
|
+
itemType: item.itemType
|
8548
9184
|
};
|
8549
9185
|
// add node to tree
|
8550
9186
|
objData$1[json.stringify(key)] = objParent;
|
@@ -8565,7 +9201,8 @@ function findChild$1(id, objParent, array) {
|
|
8565
9201
|
name: item.name,
|
8566
9202
|
parentId: id,
|
8567
9203
|
levelType: item.levelType,
|
8568
|
-
expandable: item.expandable
|
9204
|
+
expandable: item.expandable,
|
9205
|
+
itemType: item.itemType
|
8569
9206
|
};
|
8570
9207
|
objParent[json.stringify(key)] = Object.assign(Object.assign({}, objParent[json.stringify(key)]), processNode);
|
8571
9208
|
});
|
@@ -8625,7 +9262,7 @@ class NewTreeComponent {
|
|
8625
9262
|
this.isChecked = false;
|
8626
9263
|
this.idCheckIcon = '';
|
8627
9264
|
this.listChildNode = [];
|
8628
|
-
this.dataType = DataType
|
9265
|
+
this.dataType = DataType;
|
8629
9266
|
this.transformer = (node, level) => {
|
8630
9267
|
let checkHasChild = true;
|
8631
9268
|
if (!node.children) {
|
@@ -8653,7 +9290,8 @@ class NewTreeComponent {
|
|
8653
9290
|
hasChild: checkHasChild,
|
8654
9291
|
parentId: node.parentId,
|
8655
9292
|
disabled: false,
|
8656
|
-
levelType: node.levelType
|
9293
|
+
levelType: node.levelType,
|
9294
|
+
itemType: node.itemType
|
8657
9295
|
};
|
8658
9296
|
};
|
8659
9297
|
this.treeFlattener = new MatTreeFlattener(this.transformer, (node) => {
|
@@ -8676,6 +9314,7 @@ class NewTreeComponent {
|
|
8676
9314
|
appIconService.registerDeviationIcon(iconRegistry, domSanitizer);
|
8677
9315
|
appIconService.registerChecklistIcon(iconRegistry, domSanitizer);
|
8678
9316
|
appIconService.registerRiskIcon(iconRegistry, domSanitizer);
|
9317
|
+
appIconService.registerProcessInterconnectedIcon(iconRegistry, domSanitizer);
|
8679
9318
|
}
|
8680
9319
|
ngOnChanges(changes) {
|
8681
9320
|
if (changes.treeData && JSON.stringify(changes.treeData.currentValue) !== JSON.stringify(changes.treeData.previousValue)) {
|
@@ -9008,20 +9647,20 @@ class NewTreeComponent {
|
|
9008
9647
|
/** Toggle the to-do item selection. Select/deselect all the descendants node */
|
9009
9648
|
todoItemSelectionToggle(node) {
|
9010
9649
|
switch (this.moduleId) {
|
9011
|
-
case DataType
|
9012
|
-
node.itemType = node.expandable ? DataType
|
9650
|
+
case DataType.document:
|
9651
|
+
node.itemType = node.expandable ? DataType.folder : DataType.document;
|
9013
9652
|
break;
|
9014
|
-
case DataType
|
9015
|
-
node.itemType = node.expandable ? DataType
|
9653
|
+
case DataType.process:
|
9654
|
+
node.itemType = node.expandable ? DataType.area : DataType.process;
|
9016
9655
|
break;
|
9017
|
-
case DataType
|
9018
|
-
node.itemType = node.expandable ? DataType
|
9656
|
+
case DataType.checklist:
|
9657
|
+
node.itemType = node.expandable ? DataType.checklistCategory : DataType.checklist;
|
9019
9658
|
break;
|
9020
|
-
case DataType
|
9021
|
-
node.itemType = node.expandable ? DataType
|
9659
|
+
case DataType.deviation:
|
9660
|
+
node.itemType = node.expandable ? DataType.deviationType : DataType.deviation;
|
9022
9661
|
break;
|
9023
|
-
case DataType
|
9024
|
-
node.itemType = node.expandable ? DataType
|
9662
|
+
case DataType.risk:
|
9663
|
+
node.itemType = node.expandable ? DataType.riskFolder : DataType.risk;
|
9025
9664
|
break;
|
9026
9665
|
}
|
9027
9666
|
this.selectNodeEvent.emit(node);
|
@@ -9125,11 +9764,11 @@ class NewTreeComponent {
|
|
9125
9764
|
checkDataTypeSelectNode(node) {
|
9126
9765
|
let itemType = -1;
|
9127
9766
|
switch (this.moduleId) {
|
9128
|
-
case DataType
|
9129
|
-
itemType = node.expandable ? DataType
|
9767
|
+
case DataType.process:
|
9768
|
+
itemType = node.expandable ? DataType.area : (node.itemType || DataType.process);
|
9130
9769
|
break;
|
9131
|
-
case DataType
|
9132
|
-
itemType = node.expandable ? DataType
|
9770
|
+
case DataType.document:
|
9771
|
+
itemType = node.expandable ? DataType.folder : DataType.document;
|
9133
9772
|
break;
|
9134
9773
|
default:
|
9135
9774
|
itemType = this.moduleId;
|
@@ -9288,7 +9927,7 @@ class NewTreeComponent {
|
|
9288
9927
|
return this.treeControl.isExpanded(node) ? this.openIcon : this.closeIcon;
|
9289
9928
|
}
|
9290
9929
|
switch (this.moduleId) {
|
9291
|
-
case DataType
|
9930
|
+
case DataType.document: {
|
9292
9931
|
let nodeData = this.treeData.filter(x => { return x.id === node.id; });
|
9293
9932
|
if (nodeData.length > 0) {
|
9294
9933
|
switch (nodeData[0].levelType) {
|
@@ -9306,7 +9945,7 @@ class NewTreeComponent {
|
|
9306
9945
|
}
|
9307
9946
|
return this.treeControl.isExpanded(node) ? 'folder_outlined' : 'folder';
|
9308
9947
|
}
|
9309
|
-
case DataType
|
9948
|
+
case DataType.process:
|
9310
9949
|
return this.treeControl.isExpanded(node) ? 'process_area_outlined' : 'process_area';
|
9311
9950
|
default:
|
9312
9951
|
return this.treeControl.isExpanded(node) ? 'keyboard_up' : 'keyboard_down';
|
@@ -9314,7 +9953,7 @@ class NewTreeComponent {
|
|
9314
9953
|
}
|
9315
9954
|
getItemIcon(node) {
|
9316
9955
|
switch (this.moduleId) {
|
9317
|
-
case DataType
|
9956
|
+
case DataType.document:
|
9318
9957
|
const parent = this.treeData.filter(x => { return x.id === node.parentId; });
|
9319
9958
|
if (parent.length > 0) {
|
9320
9959
|
switch (parent[0].levelType) {
|
@@ -9331,13 +9970,15 @@ class NewTreeComponent {
|
|
9331
9970
|
}
|
9332
9971
|
}
|
9333
9972
|
return 'document';
|
9334
|
-
case DataType
|
9973
|
+
case DataType.process:
|
9974
|
+
if ((node === null || node === void 0 ? void 0 : node.itemType) === DataType.processInterconnected)
|
9975
|
+
return 'process_interconnected';
|
9335
9976
|
return 'process';
|
9336
|
-
case DataType
|
9977
|
+
case DataType.checklist:
|
9337
9978
|
return 'checklist';
|
9338
|
-
case DataType
|
9979
|
+
case DataType.deviation:
|
9339
9980
|
return 'deviation';
|
9340
|
-
case DataType
|
9981
|
+
case DataType.risk:
|
9341
9982
|
return 'risk';
|
9342
9983
|
default:
|
9343
9984
|
return 'document';
|
@@ -9520,7 +10161,7 @@ class SelectProcessDocumentPopupComponent {
|
|
9520
10161
|
this.singleProcessList = [];
|
9521
10162
|
this.singleDocumentList = [];
|
9522
10163
|
this.module = ModuleType$1;
|
9523
|
-
this.dataType = DataType
|
10164
|
+
this.dataType = DataType;
|
9524
10165
|
this.itemType = 0;
|
9525
10166
|
this.selectedRiskData = [];
|
9526
10167
|
this.disabledList = [];
|
@@ -9528,7 +10169,13 @@ class SelectProcessDocumentPopupComponent {
|
|
9528
10169
|
this.isDocumentExpanded = true;
|
9529
10170
|
this.isCommonExpanded = true;
|
9530
10171
|
this.singleSelectedNode = false;
|
9531
|
-
this.searchOrder = [
|
10172
|
+
this.searchOrder = [
|
10173
|
+
{ key: 'processInterconnected', value: DataType.processInterconnected },
|
10174
|
+
{ key: 'process', value: DataType.process },
|
10175
|
+
{ key: 'document', value: DataType.document },
|
10176
|
+
{ key: 'area', value: DataType.area },
|
10177
|
+
{ key: 'folder', value: DataType.folder }
|
10178
|
+
];
|
9532
10179
|
this.myControl = new FormControl();
|
9533
10180
|
this.filteredOptions = [];
|
9534
10181
|
this.isInputValue = false;
|
@@ -9565,6 +10212,7 @@ class SelectProcessDocumentPopupComponent {
|
|
9565
10212
|
appIconService.registerProcessAreaIcon(iconRegistry, sanitizer);
|
9566
10213
|
appIconService.registerDocumentIcon(iconRegistry, sanitizer);
|
9567
10214
|
appIconService.registerFolderIcon(iconRegistry, sanitizer);
|
10215
|
+
appIconService.registerProcessInterconnectedIcon(iconRegistry, sanitizer);
|
9568
10216
|
}
|
9569
10217
|
ngOnDestroy() {
|
9570
10218
|
this.ngUnsubscribe.next();
|
@@ -9602,7 +10250,7 @@ class SelectProcessDocumentPopupComponent {
|
|
9602
10250
|
newNodeProcess.displayId = +item.itemNumberId;
|
9603
10251
|
newNodeProcess.parentId = item.parentId;
|
9604
10252
|
newNodeProcess.statusId = item.status;
|
9605
|
-
if (item.itemType === DataType
|
10253
|
+
if (item.itemType === DataType.process) {
|
9606
10254
|
listNodeProcess.push(newNodeProcess);
|
9607
10255
|
}
|
9608
10256
|
else {
|
@@ -9645,7 +10293,6 @@ class SelectProcessDocumentPopupComponent {
|
|
9645
10293
|
}
|
9646
10294
|
});
|
9647
10295
|
this.itemType = this.dataType.process;
|
9648
|
-
this.searchOrder = this.getSearchOrder();
|
9649
10296
|
}
|
9650
10297
|
setSelectedData() {
|
9651
10298
|
if (this.checkedNodeList.length) {
|
@@ -9656,15 +10303,15 @@ class SelectProcessDocumentPopupComponent {
|
|
9656
10303
|
this.checkedNodeList.forEach(x => {
|
9657
10304
|
const newNode = {
|
9658
10305
|
disabled: false,
|
9659
|
-
expandable: (x.itemType == DataType
|
9660
|
-
hasChild: (x.itemType == DataType
|
10306
|
+
expandable: (x.itemType == DataType.area || x.itemType == DataType.folder) ? true : false,
|
10307
|
+
hasChild: (x.itemType == DataType.area || x.itemType == DataType.folder) ? true : false,
|
9661
10308
|
id: x.id,
|
9662
10309
|
level: 0,
|
9663
10310
|
levelType: undefined,
|
9664
10311
|
name: x.itemName,
|
9665
10312
|
parentId: x.parentId
|
9666
10313
|
};
|
9667
|
-
if (x.itemType === DataType
|
10314
|
+
if (x.itemType === DataType.area || x.itemType === DataType.process) {
|
9668
10315
|
this.treeData1.forEach(item => {
|
9669
10316
|
if (item.id && x.id === item.id) {
|
9670
10317
|
selectProcess.push(newNode);
|
@@ -9819,7 +10466,7 @@ class SelectProcessDocumentPopupComponent {
|
|
9819
10466
|
}
|
9820
10467
|
this.addToChecklistNodeAndSelectedData(item);
|
9821
10468
|
}
|
9822
|
-
else if (item.itemType === this.dataType.area || item.itemType === this.dataType.process) {
|
10469
|
+
else if (item.itemType === this.dataType.area || item.itemType === this.dataType.process || item.itemType === this.dataType.processInterconnected) {
|
9823
10470
|
const isExistInDisabled = this.disabledList.findIndex(x => {
|
9824
10471
|
var _a, _b, _c;
|
9825
10472
|
return ((_a = x.id) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === item.id.toLowerCase() && (!item.parentId || ((_b = x.parentId) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === ((_c = item.parentId) === null || _c === void 0 ? void 0 : _c.toLowerCase()) && x.itemType === item.itemType);
|
@@ -9842,8 +10489,8 @@ class SelectProcessDocumentPopupComponent {
|
|
9842
10489
|
newNodeDocs.statusId = item === null || item === void 0 ? void 0 : item['itemStatus'];
|
9843
10490
|
newNodeDocs.statusName = item === null || item === void 0 ? void 0 : item['statusName'];
|
9844
10491
|
newNodeDocs.displayId = +item.itemNumberId;
|
9845
|
-
newNodeDocs.expandable = item.itemType == DataType
|
9846
|
-
if (item.itemType == DataType
|
10492
|
+
newNodeDocs.expandable = item.itemType == DataType.folder || item.itemType == DataType.area ? true : false;
|
10493
|
+
if (item.itemType == DataType.folder || item.itemType == DataType.document) {
|
9847
10494
|
if (this.treeData2.findIndex(x => {
|
9848
10495
|
var _a, _b;
|
9849
10496
|
return x.id.toLowerCase() === newNodeDocs.id.toLowerCase() &&
|
@@ -9870,7 +10517,7 @@ class SelectProcessDocumentPopupComponent {
|
|
9870
10517
|
newNodeDocs.statusId = item === null || item === void 0 ? void 0 : item['itemStatus'];
|
9871
10518
|
newNodeDocs.statusName = item === null || item === void 0 ? void 0 : item['statusName'];
|
9872
10519
|
newNodeDocs.displayId = +item.itemNumberId;
|
9873
|
-
newNodeDocs.expandable = item.itemType == DataType
|
10520
|
+
newNodeDocs.expandable = item.itemType == DataType.folder || item.itemType == DataType.area ? true : false;
|
9874
10521
|
if (this.isSelectOne) {
|
9875
10522
|
this.checkedNodeList = [];
|
9876
10523
|
this.documentCheckedList = [];
|
@@ -9882,7 +10529,7 @@ class SelectProcessDocumentPopupComponent {
|
|
9882
10529
|
(!newNodeDocs.parentId || ((_a = x.parentId) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = newNodeDocs.parentId) === null || _b === void 0 ? void 0 : _b.toLowerCase())) && x.expandable === newNodeDocs.expandable;
|
9883
10530
|
});
|
9884
10531
|
if (index < 0) {
|
9885
|
-
if (item.itemType == DataType
|
10532
|
+
if (item.itemType == DataType.folder || item.itemType == DataType.document) {
|
9886
10533
|
if (this.documentCheckedList.findIndex(x => { var _a, _b; return x.id.toLowerCase() === newNodeDocs.id.toLowerCase() && ((_a = x.parentId) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = newNodeDocs.parentId) === null || _b === void 0 ? void 0 : _b.toLowerCase()); }) < 0) {
|
9887
10534
|
this.documentCheckedList.push({
|
9888
10535
|
id: newNodeDocs.id,
|
@@ -9940,15 +10587,15 @@ class SelectProcessDocumentPopupComponent {
|
|
9940
10587
|
this.checkedNodeList.forEach(x => {
|
9941
10588
|
const node = {
|
9942
10589
|
disabled: false,
|
9943
|
-
expandable: x.itemType == DataType
|
9944
|
-
hasChild: x.itemType == DataType
|
10590
|
+
expandable: x.itemType == DataType.area || x.itemType == DataType.folder ? true : false,
|
10591
|
+
hasChild: x.itemType == DataType.area || x.itemType == DataType.folder ? true : false,
|
9945
10592
|
id: x.id,
|
9946
10593
|
level: 0,
|
9947
10594
|
levelType: undefined,
|
9948
10595
|
name: x.itemName,
|
9949
10596
|
parentId: x.parentId
|
9950
10597
|
};
|
9951
|
-
if (x.itemType === DataType
|
10598
|
+
if (x.itemType === DataType.area || x.itemType === DataType.process) {
|
9952
10599
|
this.treeData1.forEach(item => {
|
9953
10600
|
var _a, _b;
|
9954
10601
|
if (item.id && x.id.toLowerCase() === item.id.toLowerCase() &&
|
@@ -9972,7 +10619,7 @@ class SelectProcessDocumentPopupComponent {
|
|
9972
10619
|
this.selectedData = [...this.selectedData, ...selectProcess];
|
9973
10620
|
this.selectedData2 = [...this.selectedData2, ...selectDocument];
|
9974
10621
|
}
|
9975
|
-
if (item.itemType === DataType
|
10622
|
+
if (item.itemType === DataType.folder || item.itemType === DataType.document) {
|
9976
10623
|
if (this.selectedData2.findIndex(x => {
|
9977
10624
|
var _a, _b;
|
9978
10625
|
return x.id.toLowerCase() === item.id.toLowerCase() &&
|
@@ -9996,10 +10643,10 @@ class SelectProcessDocumentPopupComponent {
|
|
9996
10643
|
this.addSelectedData({
|
9997
10644
|
id: item.id,
|
9998
10645
|
name: item.itemName,
|
9999
|
-
expandable: item.itemType == DataType
|
10646
|
+
expandable: item.itemType == DataType.area || item.itemType == DataType.folder,
|
10000
10647
|
level: 0,
|
10001
10648
|
disabled: false,
|
10002
|
-
hasChild: item.itemType == DataType
|
10649
|
+
hasChild: item.itemType == DataType.area || item.itemType == DataType.folder,
|
10003
10650
|
itemType: item.itemType
|
10004
10651
|
});
|
10005
10652
|
}
|
@@ -10076,7 +10723,7 @@ class SelectProcessDocumentPopupComponent {
|
|
10076
10723
|
}
|
10077
10724
|
getNodeIcon(item) {
|
10078
10725
|
switch (item.itemType) {
|
10079
|
-
case DataType
|
10726
|
+
case DataType.folder: {
|
10080
10727
|
switch (item.levelType) {
|
10081
10728
|
case DocumentNodeType$1.DepartmentFolder:
|
10082
10729
|
return 'department_folder_outlined';
|
@@ -10090,7 +10737,7 @@ class SelectProcessDocumentPopupComponent {
|
|
10090
10737
|
return 'folder_outlined';
|
10091
10738
|
}
|
10092
10739
|
}
|
10093
|
-
case DataType
|
10740
|
+
case DataType.document: {
|
10094
10741
|
switch (item.levelType) {
|
10095
10742
|
case DocumentNodeType$1.DepartmentFolder:
|
10096
10743
|
return 'document_department';
|
@@ -10104,34 +10751,32 @@ class SelectProcessDocumentPopupComponent {
|
|
10104
10751
|
return 'document';
|
10105
10752
|
}
|
10106
10753
|
}
|
10107
|
-
case DataType
|
10754
|
+
case DataType.area:
|
10108
10755
|
return 'process_area_outlined';
|
10109
|
-
case DataType
|
10756
|
+
case DataType.process:
|
10110
10757
|
return 'process';
|
10758
|
+
case DataType.processInterconnected:
|
10759
|
+
return 'process_interconnected';
|
10111
10760
|
default:
|
10112
10761
|
return 'folder_outlined';
|
10113
10762
|
}
|
10114
10763
|
}
|
10115
|
-
getSearchOrder() {
|
10116
|
-
let searchTypes = Object.keys(this.dataType)
|
10117
|
-
.map(key => ({ value: this.dataType[key], key: key }));
|
10118
|
-
searchTypes = searchTypes.slice(searchTypes.length / 2);
|
10119
|
-
return searchTypes;
|
10120
|
-
}
|
10121
10764
|
getTitle(type) {
|
10122
10765
|
switch (type) {
|
10123
|
-
case DataType
|
10766
|
+
case DataType.process:
|
10124
10767
|
return this.LANG.PROCESSES;
|
10125
|
-
case DataType
|
10768
|
+
case DataType.area:
|
10126
10769
|
return this.LANG.PROCESS_AREA;
|
10127
|
-
case DataType
|
10770
|
+
case DataType.document:
|
10128
10771
|
return this.LANG.DOCUMENTS;
|
10129
|
-
case DataType
|
10772
|
+
case DataType.folder:
|
10130
10773
|
return this.LANG.FOLDER;
|
10774
|
+
case DataType.processInterconnected:
|
10775
|
+
return this.LANG.INTERCONNECTED_PROCESSES;
|
10131
10776
|
}
|
10132
10777
|
}
|
10133
10778
|
getItemId(item) {
|
10134
|
-
if (item.itemType === this.dataType.process) {
|
10779
|
+
if (item.itemType === this.dataType.process || item.itemType === this.dataType.processInterconnected) {
|
10135
10780
|
return `${this.LANG.PROCESS_ID}: ${item.itemNumberId}; ${item.statusName}`;
|
10136
10781
|
}
|
10137
10782
|
else if (item.itemType === this.dataType.document) {
|
@@ -10171,7 +10816,7 @@ class SelectProcessDocumentPopupComponent {
|
|
10171
10816
|
this.selectedFolder = node;
|
10172
10817
|
this.parentNodeSelected = new TreeFlatNode();
|
10173
10818
|
this.parentNodeSelected = Object.assign({}, node);
|
10174
|
-
if (item.itemType == DataType
|
10819
|
+
if (item.itemType == DataType.area)
|
10175
10820
|
this.onExpandProcessArea.emit(item);
|
10176
10821
|
else
|
10177
10822
|
this.onExpandFolder.emit(item);
|
@@ -10204,7 +10849,7 @@ class SelectProcessDocumentPopupComponent {
|
|
10204
10849
|
let item;
|
10205
10850
|
let status = 0;
|
10206
10851
|
let statusName = '';
|
10207
|
-
if (node.itemType == DataType
|
10852
|
+
if (node.itemType == DataType.folder || node.itemType == DataType.document) {
|
10208
10853
|
item = this.treeData2.find(x => {
|
10209
10854
|
var _a, _b;
|
10210
10855
|
return x.id.toLowerCase() === node.id.toLowerCase()
|
@@ -10355,8 +11000,8 @@ class QMSCKEditorTreeService extends QMSCKEditorBaseService {
|
|
10355
11000
|
getUploadVideoList(folderId = null) {
|
10356
11001
|
return this.get('ckeditorTree/GetUploadVideoList', { folderId });
|
10357
11002
|
}
|
10358
|
-
getProcessAreaContents(areaId = '', showProcessesInTree = true) {
|
10359
|
-
return this.get('processAreas/GetContent', { areaId, showProcessesInTree });
|
11003
|
+
getProcessAreaContents(areaId = '', showProcessesInTree = true, isInterconnectedProcess = false) {
|
11004
|
+
return this.get('processAreas/GetContent', { areaId, showProcessesInTree, isInterconnectedProcess });
|
10360
11005
|
}
|
10361
11006
|
getFolderChildrens(id = '', showProcessesInTree = true, isOnlyApproved = true) {
|
10362
11007
|
return this.get('Folders/GetChildren', { id, showProcessesInTree, isOnlyApproved });
|
@@ -10368,6 +11013,10 @@ class QMSCKEditorTreeService extends QMSCKEditorBaseService {
|
|
10368
11013
|
searchDocument(keyword = '', searchType = 1) {
|
10369
11014
|
return this.get('Search/SearchDocuments', { keyword, searchType });
|
10370
11015
|
}
|
11016
|
+
// public Search
|
11017
|
+
searchProcessInterconnected(keyword = '', isContentSearch = true, isFrontend = false, searchType = 1) {
|
11018
|
+
return this.get('SearchProcess/SearchProcessInterconnected', { isContentSearch, isFrontend, keyword, searchType });
|
11019
|
+
}
|
10371
11020
|
}
|
10372
11021
|
QMSCKEditorTreeService.ɵprov = i0.ɵɵdefineInjectable({ factory: function QMSCKEditorTreeService_Factory() { return new QMSCKEditorTreeService(i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(QMSCKEditorGlobalService)); }, token: QMSCKEditorTreeService, providedIn: "root" });
|
10373
11022
|
QMSCKEditorTreeService.decorators = [
|
@@ -10389,6 +11038,12 @@ const guidHelper = {
|
|
10389
11038
|
empty: '00000000-0000-0000-0000-000000000000'
|
10390
11039
|
};
|
10391
11040
|
|
11041
|
+
var ProcessClassification;
|
11042
|
+
(function (ProcessClassification) {
|
11043
|
+
ProcessClassification[ProcessClassification["Process"] = 1] = "Process";
|
11044
|
+
ProcessClassification[ProcessClassification["InterconnectedProcess"] = 2] = "InterconnectedProcess";
|
11045
|
+
})(ProcessClassification || (ProcessClassification = {}));
|
11046
|
+
|
10392
11047
|
class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
10393
11048
|
constructor(cdr, dialog, translate, linkService, commonService, treeService, selectProcessDocumentGlobalService, dialogRef, data) {
|
10394
11049
|
super();
|
@@ -10416,6 +11071,7 @@ class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
|
10416
11071
|
emailBody: new FormControl("", [Validators.required]),
|
10417
11072
|
});
|
10418
11073
|
this.anchorDocFormGroup = new FormGroup({
|
11074
|
+
targetList: new FormControl(),
|
10419
11075
|
anchorTitle: new FormControl("", [Validators.required]),
|
10420
11076
|
anchorByName: new FormControl("", [Validators.required]),
|
10421
11077
|
});
|
@@ -10445,13 +11101,29 @@ class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
|
10445
11101
|
DocumentNodeType$1.LinkDocument,
|
10446
11102
|
DocumentNodeType$1.ShortcutDocument
|
10447
11103
|
];
|
11104
|
+
this.selectedTargetAnchorDocument = 0;
|
10448
11105
|
this.selectedLinkType = data.typeId;
|
10449
|
-
this.selectedTarget = data.targetId;
|
10450
11106
|
this.selectedProtocol = data.protocolId;
|
10451
11107
|
this.url = data.url;
|
10452
11108
|
this.advisoryTitle = data.title;
|
10453
11109
|
this.edit = data.edit;
|
10454
11110
|
this.editorContent = data.editorContent;
|
11111
|
+
if (this.url.length && data.typeId == LinkType.url) {
|
11112
|
+
this.selectedTarget = data.targetId;
|
11113
|
+
this.selectedTargetAnchorDocument = data.defaultTargetNewWindow ? TargetType.new : TargetType.same;
|
11114
|
+
}
|
11115
|
+
else if (this.url.length && data.typeId == LinkType.anchorDocument) {
|
11116
|
+
this.selectedTargetAnchorDocument = data.targetId;
|
11117
|
+
this.selectedTarget = data.defaultTargetNewWindow ? TargetType.new : TargetType.same;
|
11118
|
+
}
|
11119
|
+
else if (data.defaultTargetNewWindow) {
|
11120
|
+
this.selectedTarget = TargetType.new;
|
11121
|
+
this.selectedTargetAnchorDocument = TargetType.new;
|
11122
|
+
}
|
11123
|
+
else {
|
11124
|
+
this.selectedTarget = TargetType.same;
|
11125
|
+
this.selectedTargetAnchorDocument = TargetType.same;
|
11126
|
+
}
|
10455
11127
|
}
|
10456
11128
|
ngOnInit() {
|
10457
11129
|
this.translate.getLanguageSubject$
|
@@ -10590,7 +11262,7 @@ class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
|
10590
11262
|
showCheckBox: false,
|
10591
11263
|
allowMultipleCheck: false,
|
10592
11264
|
onlyCheckBoxForChild: false,
|
10593
|
-
moduleId: DataType
|
11265
|
+
moduleId: DataType.process,
|
10594
11266
|
openIconColor: '#1954A9',
|
10595
11267
|
closeIconColor: '#a4b0de',
|
10596
11268
|
singleSelectedNode: true,
|
@@ -10601,7 +11273,7 @@ class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
|
10601
11273
|
allowSelectFolder: !isOnlyDocument,
|
10602
11274
|
areaOfCurrentProcess: '',
|
10603
11275
|
showCheckBox: false,
|
10604
|
-
moduleId: DataType
|
11276
|
+
moduleId: DataType.document,
|
10605
11277
|
allowMultipleCheck: false,
|
10606
11278
|
onlyCheckBoxForChild: false,
|
10607
11279
|
openIconColor: '#1954A9',
|
@@ -10655,39 +11327,84 @@ class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
|
10655
11327
|
dialogRef.componentInstance.onSearch.subscribe((keyword) => {
|
10656
11328
|
if (!keyword || keyword.trim() === '')
|
10657
11329
|
return;
|
10658
|
-
|
10659
|
-
.
|
10660
|
-
|
10661
|
-
|
10662
|
-
|
10663
|
-
|
10664
|
-
|
10665
|
-
|
10666
|
-
|
10667
|
-
|
10668
|
-
|
10669
|
-
|
10670
|
-
|
10671
|
-
|
10672
|
-
|
10673
|
-
|
10674
|
-
|
10675
|
-
|
10676
|
-
|
10677
|
-
|
10678
|
-
|
10679
|
-
|
10680
|
-
|
10681
|
-
|
10682
|
-
|
10683
|
-
|
10684
|
-
|
10685
|
-
|
10686
|
-
|
10687
|
-
|
11330
|
+
if (this.data.enabledInterconnected) {
|
11331
|
+
forkJoin([this.treeService.searchProcess(keyword), this.treeService.searchDocument(keyword), this.treeService.searchProcessInterconnected(keyword)])
|
11332
|
+
.toPromise()
|
11333
|
+
.then(([process, document, interconnected]) => {
|
11334
|
+
if (process && document && interconnected) {
|
11335
|
+
const resultProcessSearch = process.map((x) => {
|
11336
|
+
return {
|
11337
|
+
id: x.entityId,
|
11338
|
+
itemNumberId: x.processNumber.toString(),
|
11339
|
+
itemName: x.name,
|
11340
|
+
itemType: DataType.process,
|
11341
|
+
status: x.status,
|
11342
|
+
statusName: x.approvalStatus,
|
11343
|
+
location: x.location,
|
11344
|
+
};
|
11345
|
+
});
|
11346
|
+
const resultDocumentSearch = document.documents.map((x) => {
|
11347
|
+
return {
|
11348
|
+
id: x.id.toString(),
|
11349
|
+
itemNumberId: x.id.toString(),
|
11350
|
+
itemName: x.name,
|
11351
|
+
itemType: DataType.document,
|
11352
|
+
status: 0,
|
11353
|
+
statusName: x.approvalStatus,
|
11354
|
+
location: x.location,
|
11355
|
+
};
|
11356
|
+
});
|
11357
|
+
const resultInterconnectedSearch = interconnected.map((x) => {
|
11358
|
+
return {
|
11359
|
+
id: x.processInterconnectedEntityId,
|
11360
|
+
itemNumberId: x.processInterconnectedNumber.toString(),
|
11361
|
+
itemName: x.name,
|
11362
|
+
itemType: DataType.processInterconnected,
|
11363
|
+
status: x.status,
|
11364
|
+
statusName: x.approvalStatus,
|
11365
|
+
location: x.location,
|
11366
|
+
};
|
11367
|
+
});
|
11368
|
+
const resulSearch = [...resultProcessSearch, ...resultDocumentSearch, ...resultInterconnectedSearch];
|
11369
|
+
this.selectProcessDocumentGlobalService.setSearchRelated(resulSearch);
|
11370
|
+
}
|
11371
|
+
});
|
11372
|
+
}
|
11373
|
+
else {
|
11374
|
+
forkJoin([this.treeService.searchProcess(keyword), this.treeService.searchDocument(keyword)])
|
11375
|
+
.toPromise()
|
11376
|
+
.then(([process, document]) => {
|
11377
|
+
if (process && document) {
|
11378
|
+
const resultProcessSearch = process.map((x) => {
|
11379
|
+
return {
|
11380
|
+
id: x.entityId,
|
11381
|
+
itemNumberId: x.processNumber.toString(),
|
11382
|
+
itemName: x.name,
|
11383
|
+
itemType: DataType.process,
|
11384
|
+
status: x.status,
|
11385
|
+
statusName: x.approvalStatus,
|
11386
|
+
location: x.location,
|
11387
|
+
};
|
11388
|
+
});
|
11389
|
+
const resultDocumentSearch = document.documents.map((x) => {
|
11390
|
+
return {
|
11391
|
+
id: x.id.toString(),
|
11392
|
+
itemNumberId: x.id.toString(),
|
11393
|
+
itemName: x.name,
|
11394
|
+
itemType: DataType.document,
|
11395
|
+
status: 0,
|
11396
|
+
statusName: x.approvalStatus,
|
11397
|
+
location: x.location,
|
11398
|
+
};
|
11399
|
+
});
|
11400
|
+
const resulSearch = [...resultProcessSearch, ...resultDocumentSearch];
|
11401
|
+
this.selectProcessDocumentGlobalService.setSearchRelated(resulSearch);
|
11402
|
+
}
|
11403
|
+
});
|
11404
|
+
}
|
10688
11405
|
});
|
10689
11406
|
dialogRef.componentInstance.onExpandProcessArea.subscribe((area) => {
|
10690
|
-
this.treeService.getProcessAreaContents(area.id).toPromise().then(res => {
|
11407
|
+
this.treeService.getProcessAreaContents(area.id, true, this.data.enabledInterconnected).toPromise().then(res => {
|
10691
11408
|
if (res) {
|
10692
11409
|
const areas = res.areas.map((x) => {
|
10693
11410
|
return {
|
@@ -10708,7 +11425,8 @@ class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
|
10708
11425
|
expandable: false,
|
10709
11426
|
statusId: x.status,
|
10710
11427
|
statusName: x.approvalStatus,
|
10711
|
-
displayId: x.processNumber
|
11428
|
+
displayId: x.processNumber,
|
11429
|
+
itemType: x.processClassification === ProcessClassification.InterconnectedProcess ? DataType.processInterconnected : DataType.process
|
10712
11430
|
};
|
10713
11431
|
}) || [];
|
10714
11432
|
this.selectProcessDocumentGlobalService.setProcessAreaChildren([...areas, ...processes]);
|
@@ -10764,18 +11482,20 @@ class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
|
10764
11482
|
getLinkURL(data) {
|
10765
11483
|
let url = '';
|
10766
11484
|
switch (data === null || data === void 0 ? void 0 : data.itemType) {
|
10767
|
-
case DataType
|
11485
|
+
case DataType.document:
|
10768
11486
|
url = `/document/${data.id}`;
|
10769
11487
|
break;
|
10770
|
-
case DataType
|
11488
|
+
case DataType.process:
|
10771
11489
|
url = `/process-detail/${data.displayId}`;
|
10772
11490
|
break;
|
10773
|
-
case DataType
|
11491
|
+
case DataType.area:
|
10774
11492
|
url = `/area/detail/${data.id}`;
|
10775
11493
|
break;
|
10776
|
-
case DataType
|
11494
|
+
case DataType.folder:
|
10777
11495
|
url = `/folder/${data.id}`;
|
10778
11496
|
break;
|
11497
|
+
case DataType.processInterconnected:
|
11498
|
+
url = `/process-interconnected/${data.displayId}`;
|
10779
11499
|
default:
|
10780
11500
|
break;
|
10781
11501
|
}
|
@@ -10940,7 +11660,7 @@ class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
|
10940
11660
|
case LinkType.anchorDocument:
|
10941
11661
|
link.url = `${this.selectedLinkType}${0}/document/${this.documentId}#${this.anchorByName}`;
|
10942
11662
|
link.title = this.anchorTitle;
|
10943
|
-
link.targetId =
|
11663
|
+
link.targetId = this.selectedTargetAnchorDocument;
|
10944
11664
|
break;
|
10945
11665
|
}
|
10946
11666
|
this.dialogRef.close(link);
|
@@ -10997,7 +11717,7 @@ class QMSCKEditorLinkComponent extends QMSCKEditorBaseComponent {
|
|
10997
11717
|
QMSCKEditorLinkComponent.decorators = [
|
10998
11718
|
{ type: Component, args: [{
|
10999
11719
|
selector: "qms-ckeditor-link",
|
11000
|
-
template: "<div id=\"qmsckeditor_link\" class=\"qmsckeditor qmsckeditor__link__container\">\r\n <div id=\"qmsckeditor_link_header\">\r\n <span id=\"qmsckeditor_link_header_001\" mat-icon-button class=\"qmsckeditor button__close\" (click)=\"onCloseDialog()\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmsckeditor_link_header_002\" mat-dialog-content>\r\n <h2 id=\"qmsckeditor_link_header_001\">\r\n {{ LANG.QMSCKEDITOR.LINK }}\r\n </h2>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link_type\" class=\"row\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_TYPE }}</mat-label>\r\n <mat-select disableOptionCentering name=\"linkTypeList\" [(ngModel)]=\"selectedLinkType\"\r\n (ngModelChange)=\"onSelectedLinkType()\">\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\r\n <div id=\"qmsckeditor_link_content\">\r\n <form [formGroup]=\"linkFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.url\">\r\n <div id=\"qmsckeditor_link_url\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_url_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\r\n (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.URL_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_url_001\" class=\"row mt-2\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.TARGET }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedTarget\" formControlName=\"targetList\" 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 id=\"qmsckeditor_link_url_002\" class=\"row\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.PROTOCOL }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedProtocol\" formControlName=\"protocolList\" 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 id=\"qmsckeditor_link_url_003\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_URL }}</mat-label>\r\n <input matInput [(ngModel)]=\"url\" name=\"url\" formControlName=\"url\"\r\n (ngModelChange)=\"getUrlToSetProtocol()\" (keydown.enter)=\"setLinkUrlType($event)\" />\r\n <mat-error *ngIf=\"linkFormGroup.get('url').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_004\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.TITLE }}</mat-label>\r\n <input matInput [(ngModel)]=\"advisoryTitle\" formControlName=\"advisoryTitle\" />\r\n <mat-error *ngIf=\"linkFormGroup.get('advisoryTitle').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_005\" class=\"qmsckeditor button__groups row\">\r\n <div class=\"col-6 pl-3 ps-3\">\r\n <button class=\"save\" mat-flat-button (click)=\"eHandbook(false, false)\">\r\n {{ LANG.QMSCKEDITOR.DOCUMENT_PROCESS }}\r\n </button>\r\n </div>\r\n <div class=\"col-6 pr-3 pe-3\">\r\n <button class=\"save\" mat-flat-button (click)=\"attachment()\">\r\n {{ LANG.QMSCKEDITOR.ATTACHMENT }}\r\n </button>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n\r\n <form [formGroup]=\"anchorTextFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.anchorText\">\r\n <div id=\"qmsckeditor_link_anchor_text\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_anchor_text_panel\" [expanded]=\"isExpanded\"\r\n (opened)=\"isExpanded = true\" (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.ANCHOR_TEXT_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_anchor_text_001\" class=\"row mt-2\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\r\n <mat-select [(ngModel)]=\"anchorText\" formControlName=\"anchorText\">\r\n <mat-option *ngFor=\"let editorAnchor of editorAnchors\" [value]=\"editorAnchor.anchorValue\"\r\n disableOptionCentering>\r\n {{ editorAnchor.viewValue }}\r\n </mat-option>\r\n </mat-select>\r\n <mat-error *ngIf=\"\r\n anchorTextFormGroup.get('anchorText').hasError('required')\r\n \" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n\r\n <form [formGroup]=\"emailFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.email\">\r\n <div id=\"qmsckeditor_link_email\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_email_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\r\n (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.EMAIL_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_email_001\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_ADDRESS }}</mat-label>\r\n <input matInput [(ngModel)]=\"emailAddress\" formControlName=\"emailAddress\" />\r\n <mat-error *ngIf=\"emailFormGroup.get('emailAddress').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_email_002\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_SUBJECT }}</mat-label>\r\n <input matInput [(ngModel)]=\"emailSubject\" formControlName=\"emailSubject\" />\r\n <mat-error *ngIf=\"emailFormGroup.get('emailSubject').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_email_003\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_BODY }}</mat-label>\r\n <textarea matInput [(ngModel)]=\"emailBody\" formControlName=\"emailBody\"></textarea>\r\n <mat-error *ngIf=\"emailFormGroup.get('emailBody').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n\r\n <form [formGroup]=\"anchorDocFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.anchorDocument\">\r\n <div id=\"qmsckeditor_link_anchor_doc\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_email_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\r\n (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.DOCUMENT_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_anchor_doc_001\" class=\"qmsckeditor button__groups row\">\r\n <div class=\"col-6 pl-3 ps-3\">\r\n <button class=\"cancel\" mat-flat-button (click)=\"eHandbook(true, true)\">\r\n {{ LANG.QMSCKEDITOR.DOCUMENT }}\r\n </button>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link_anchor_doc_002\" class=\"row mt-4\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.DOCUMENT }}</mat-label>\r\n <input matInput [(ngModel)]=\"anchorTitle\" formControlName=\"anchorTitle\" />\r\n <mat-error *ngIf=\"\r\n anchorDocFormGroup.get('anchorTitle').hasError('required')\r\n \" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_anchor_doc_003\" class=\"row mt-2\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\r\n <mat-select [(ngModel)]=\"anchorByName\" formControlName=\"anchorByName\" disableOptionCentering>\r\n <mat-option *ngFor=\"let docAnchor of documentAnchors\" [value]=\"docAnchor.anchorValue\">\r\n {{ docAnchor.viewValue }}\r\n </mat-option>\r\n </mat-select>\r\n <mat-error *ngIf=\"\r\n anchorDocFormGroup.get('anchorByName').hasError('required')\r\n \" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n </div>\r\n\r\n <div id=\"qmsckeditor_link_footer\" class=\"qmsckeditor button__groups row\">\r\n <div class=\"col-12 mt-3 pl-3 pr-3 ps-3 pe-3\">\r\n <button class=\"save\" mat-flat-button (click)=\"setLink()\" [disabled]=\"disableOkButton()\">\r\n {{ LANG.QMSCKEDITOR.OK }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>",
|
11720
|
+
template: "<div id=\"qmsckeditor_link\" class=\"qmsckeditor qmsckeditor__link__container\">\n <div id=\"qmsckeditor_link_header\">\n <span id=\"qmsckeditor_link_header_001\" mat-icon-button class=\"qmsckeditor button__close\" (click)=\"onCloseDialog()\">\n <mat-icon>close</mat-icon>\n </span>\n <div id=\"qmsckeditor_link_header_002\" mat-dialog-content>\n <h2 id=\"qmsckeditor_link_header_001\">\n {{ LANG.QMSCKEDITOR.LINK }}\n </h2>\n </div>\n </div>\n <div id=\"qmsckeditor_link_type\" class=\"row\">\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_TYPE }}</mat-label>\n <mat-select disableOptionCentering name=\"linkTypeList\" [(ngModel)]=\"selectedLinkType\"\n (ngModelChange)=\"onSelectedLinkType()\">\n <mat-option *ngFor=\"let link of linkTypes\" [value]=\"link.id\">\n {{ link.name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div id=\"qmsckeditor_link_content\">\n <form [formGroup]=\"linkFormGroup\" class=\"qmsckeditor link__content height row\"\n *ngIf=\"selectedLinkType == LinkType.url\">\n <div id=\"qmsckeditor_link_url\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\n <mat-expansion-panel id=\"qmsckeditor_link_url_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\n (closed)=\"isExpanded = false\">\n <mat-expansion-panel-header>\n <mat-panel-title>\n {{ LANG.QMSCKEDITOR.URL_HEADER }}\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div id=\"qmsckeditor_link_url_001\" class=\"row mt-2\">\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\n <mat-label>{{ LANG.QMSCKEDITOR.TARGET }}</mat-label>\n <mat-select [(ngModel)]=\"selectedTarget\" formControlName=\"targetList\" disableOptionCentering>\n <mat-option *ngFor=\"let target of targets\" [value]=\"target.id\">\n {{ target.name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <div id=\"qmsckeditor_link_url_002\" class=\"row\">\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\n <mat-label>{{ LANG.QMSCKEDITOR.PROTOCOL }}</mat-label>\n <mat-select [(ngModel)]=\"selectedProtocol\" formControlName=\"protocolList\" disableOptionCentering>\n <mat-option *ngFor=\"let protocol of protocols\" [value]=\"protocol.id\">\n {{ protocol.name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <div id=\"qmsckeditor_link_url_003\" class=\"row\">\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_URL }}</mat-label>\n <input matInput [(ngModel)]=\"url\" name=\"url\" formControlName=\"url\"\n (ngModelChange)=\"getUrlToSetProtocol()\" (keydown.enter)=\"setLinkUrlType($event)\" />\n <mat-error *ngIf=\"linkFormGroup.get('url').hasError('required')\" class=\"mt5\">\n </mat-error>\n </mat-form-field>\n </div>\n <div id=\"qmsckeditor_link_url_004\" class=\"row\">\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\n <mat-label>{{ LANG.QMSCKEDITOR.TITLE }}</mat-label>\n <input matInput [(ngModel)]=\"advisoryTitle\" formControlName=\"advisoryTitle\" />\n <mat-error *ngIf=\"linkFormGroup.get('advisoryTitle').hasError('required')\" class=\"mt5\">\n </mat-error>\n </mat-form-field>\n </div>\n <div id=\"qmsckeditor_link_url_005\" class=\"qmsckeditor button__groups row\">\n <div class=\"col-6 pl-3 ps-3\">\n <button class=\"save\" mat-flat-button (click)=\"eHandbook(false, false)\">\n {{ LANG.QMSCKEDITOR.DOCUMENT_PROCESS }}\n </button>\n </div>\n <div class=\"col-6 pr-3 pe-3\">\n <button class=\"save\" mat-flat-button (click)=\"attachment()\">\n {{ LANG.QMSCKEDITOR.ATTACHMENT }}\n </button>\n </div>\n </div>\n </mat-expansion-panel>\n </div>\n </form>\n\n <form [formGroup]=\"anchorTextFormGroup\" class=\"qmsckeditor link__content height row\"\n *ngIf=\"selectedLinkType == LinkType.anchorText\">\n <div id=\"qmsckeditor_link_anchor_text\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\n <mat-expansion-panel id=\"qmsckeditor_link_anchor_text_panel\" [expanded]=\"isExpanded\"\n (opened)=\"isExpanded = true\" (closed)=\"isExpanded = false\">\n <mat-expansion-panel-header>\n <mat-panel-title>\n {{ LANG.QMSCKEDITOR.ANCHOR_TEXT_HEADER }}\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div id=\"qmsckeditor_link_anchor_text_001\" class=\"row mt-2\">\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\n <mat-select [(ngModel)]=\"anchorText\" formControlName=\"anchorText\">\n <mat-option *ngFor=\"let editorAnchor of editorAnchors\" [value]=\"editorAnchor.anchorValue\"\n disableOptionCentering>\n {{ editorAnchor.viewValue }}\n </mat-option>\n </mat-select>\n <mat-error *ngIf=\"\n anchorTextFormGroup.get('anchorText').hasError('required')\n \" class=\"mt5\">\n </mat-error>\n </mat-form-field>\n </div>\n </mat-expansion-panel>\n </div>\n </form>\n\n <form [formGroup]=\"emailFormGroup\" class=\"qmsckeditor link__content height row\"\n *ngIf=\"selectedLinkType == LinkType.email\">\n <div id=\"qmsckeditor_link_email\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\n <mat-expansion-panel id=\"qmsckeditor_link_email_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\n (closed)=\"isExpanded = false\">\n <mat-expansion-panel-header>\n <mat-panel-title>\n {{ LANG.QMSCKEDITOR.EMAIL_HEADER }}\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div id=\"qmsckeditor_link_email_001\" class=\"row\">\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_ADDRESS }}</mat-label>\n <input matInput [(ngModel)]=\"emailAddress\" formControlName=\"emailAddress\" />\n <mat-error *ngIf=\"emailFormGroup.get('emailAddress').hasError('required')\" class=\"mt5\">\n </mat-error>\n </mat-form-field>\n </div>\n <div id=\"qmsckeditor_link_email_002\" class=\"row\">\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_SUBJECT }}</mat-label>\n <input matInput [(ngModel)]=\"emailSubject\" formControlName=\"emailSubject\" />\n <mat-error *ngIf=\"emailFormGroup.get('emailSubject').hasError('required')\" class=\"mt5\">\n </mat-error>\n </mat-form-field>\n </div>\n <div id=\"qmsckeditor_link_email_003\" class=\"row\">\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_BODY }}</mat-label>\n <textarea matInput [(ngModel)]=\"emailBody\" formControlName=\"emailBody\"></textarea>\n <mat-error *ngIf=\"emailFormGroup.get('emailBody').hasError('required')\" class=\"mt5\">\n </mat-error>\n </mat-form-field>\n </div>\n </mat-expansion-panel>\n </div>\n </form>\n\n <form [formGroup]=\"anchorDocFormGroup\" class=\"qmsckeditor link__content height row\"\n *ngIf=\"selectedLinkType == LinkType.anchorDocument\">\n <div id=\"qmsckeditor_link_anchor_doc\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\n <mat-expansion-panel id=\"qmsckeditor_link_email_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\n (closed)=\"isExpanded = false\">\n <mat-expansion-panel-header>\n <mat-panel-title>\n {{ LANG.QMSCKEDITOR.DOCUMENT_HEADER }}\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div id=\"qmsckeditor_link_anchor_doc_001\" class=\"qmsckeditor button__groups row\">\n <div class=\"col-6 pl-3 ps-3\">\n <button class=\"cancel\" mat-flat-button (click)=\"eHandbook(true, true)\">\n {{ LANG.QMSCKEDITOR.DOCUMENT }}\n </button>\n </div>\n </div>\n <div id=\"qmsckeditor_link_anchor_doc_002\" class=\"row mt-4\">\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\n <mat-label>{{ LANG.QMSCKEDITOR.DOCUMENT }}</mat-label>\n <input matInput [(ngModel)]=\"anchorTitle\" formControlName=\"anchorTitle\" />\n <mat-error *ngIf=\"\n anchorDocFormGroup.get('anchorTitle').hasError('required')\n \" class=\"mt5\">\n </mat-error>\n </mat-form-field>\n </div>\n <div id=\"qmsckeditor_link_anchor_doc_003\" class=\"row mt-2\">\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\n <mat-label>{{ LANG.QMSCKEDITOR.TARGET }}</mat-label>\n <mat-select [(ngModel)]=\"selectedTargetAnchorDocument\" formControlName=\"targetList\" disableOptionCentering>\n <mat-option *ngFor=\"let target of targets\" [value]=\"target.id\">\n {{ target.name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <div id=\"qmsckeditor_link_anchor_doc_004\" class=\"row mt-2\">\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\n <mat-select [(ngModel)]=\"anchorByName\" formControlName=\"anchorByName\" disableOptionCentering>\n <mat-option *ngFor=\"let docAnchor of documentAnchors\" [value]=\"docAnchor.anchorValue\">\n {{ docAnchor.viewValue }}\n </mat-option>\n </mat-select>\n <mat-error *ngIf=\"\n anchorDocFormGroup.get('anchorByName').hasError('required')\n \" class=\"mt5\">\n </mat-error>\n </mat-form-field>\n </div>\n </mat-expansion-panel>\n </div>\n </form>\n </div>\n\n <div id=\"qmsckeditor_link_footer\" class=\"qmsckeditor button__groups row\">\n <div class=\"col-12 mt-3 pl-3 pr-3 ps-3 pe-3\">\n <button class=\"save\" mat-flat-button (click)=\"setLink()\" [disabled]=\"disableOkButton()\">\n {{ LANG.QMSCKEDITOR.OK }}\n </button>\n </div>\n </div>\n</div>",
|
11001
11721
|
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}.ck-font-size-dropdown .ck-dropdown__panel ul{max-height:320px;overflow-y:auto}.ck-font-size-dropdown .ck-dropdown__panel ul li .ck-fontsize-option .ck-button__label{line-height:50px}.qmsckeditor__link__container textarea.mat-input-element{min-height:130px}"]
|
11002
11722
|
},] }
|
11003
11723
|
];
|
@@ -11971,9 +12691,220 @@ CKEditorEventConst.QMSCK_TOGGLE_TOOLBAR_MSG = 'QMSCK_TOGGLE_TOOLBAR_MSG';
|
|
11971
12691
|
CKEditorEventConst.QMSCK_BROWSE_VIDEO_MSG = 'QMSCK_BROWSE_VIDEO_MSG';
|
11972
12692
|
CKEditorEventConst.QMSCK_BROWSE_VIDEO_RESP = 'QMSCK_BROWSE_VIDEO_RESP';
|
11973
12693
|
|
12694
|
+
function BuildResourceNO(LANG = null) {
|
12695
|
+
return {
|
12696
|
+
dictionary: {
|
12697
|
+
// words of CK5 possible ONLY via the Transifex online service
|
12698
|
+
"%0 of %1": "%0 av %1",
|
12699
|
+
"Align center": "Midtstill",
|
12700
|
+
"Align left": "Venstrejuster",
|
12701
|
+
"Align right": "Høyrejuster",
|
12702
|
+
"Aquamarine": "Akvamarin",
|
12703
|
+
"Big": "Stor",
|
12704
|
+
"Black": "Svart",
|
12705
|
+
"Block quote": "Blokksitat",
|
12706
|
+
"Blue": "Blå",
|
12707
|
+
"Bold": "Fet",
|
12708
|
+
"Bulleted List": "Punktliste",
|
12709
|
+
"Cancel": "Avbryt",
|
12710
|
+
"Cannot upload file:": "Kan ikke laste opp fil:",
|
12711
|
+
"Centered image": "Midtstilt bilde",
|
12712
|
+
"Change image text alternative": "Endre tekstalternativ til bildet",
|
12713
|
+
"Characters: % 0": "Tegn: %0",
|
12714
|
+
"Could not insert image at the current position.": "Kunne ikke sette inn bilde på gjeldende posisjon.",
|
12715
|
+
"Could not obtain resized image URL.": "Kunne ikke finne URL for bilde med endret størrelse.",
|
12716
|
+
"Decrease indent": "Reduser innrykk",
|
12717
|
+
"Default": "Standard",
|
12718
|
+
"Dim grey": "Svak grå",
|
12719
|
+
"Document colors": "Dokumentfarger",
|
12720
|
+
"Dropdown toolbar": "Verktøylinje for nedtrekksliste",
|
12721
|
+
"Edit block": "Rediger blokk",
|
12722
|
+
"Editor toolbar": "Verktøylinje for redigeringsverktøy",
|
12723
|
+
"Enter image caption": "Skriv inn bildetekst",
|
12724
|
+
"Font Background Color": "Uthevingsfarge for tekst",
|
12725
|
+
"Font Color": "Skriftfarge",
|
12726
|
+
"Font Family": "Skrifttypefamilie",
|
12727
|
+
"Font Size": "Skriftstørrelse",
|
12728
|
+
"Full size image": "Bilde i full størrelse",
|
12729
|
+
"Green": "Grønn",
|
12730
|
+
"Grey": "Grå",
|
12731
|
+
"Horizontal line": "Horisontal linje",
|
12732
|
+
"Huge": "Veldig stor",
|
12733
|
+
"Image resize list": "",
|
12734
|
+
"Image toolbar": "Verktøylinje for bilde",
|
12735
|
+
"Increase indent": "Øk innrykk",
|
12736
|
+
"Insert image": "Sett inn bilde",
|
12737
|
+
"Insert image or file": "Sett inn bilde eller fil",
|
12738
|
+
"Insert paragraph after block": "",
|
12739
|
+
"Insert paragraph before block": "",
|
12740
|
+
"Inserting image failed": "Innsetting av bilde mislyktes",
|
12741
|
+
"Italic": "Kursiv",
|
12742
|
+
"Justify": "Blokkjuster",
|
12743
|
+
"Left aligned image": "Venstrejustert bilde",
|
12744
|
+
"Light blue": "Lyseblå",
|
12745
|
+
"Light green": "Lysegrønn",
|
12746
|
+
"Light grey": "Lysegrå",
|
12747
|
+
"Next": "Neste",
|
12748
|
+
"Numbered List": "Nummerert liste",
|
12749
|
+
"Orange": "Oransje",
|
12750
|
+
"Original": "Opprinnelig",
|
12751
|
+
"Page break": "Sideskift ",
|
12752
|
+
"Previous": "Forrige",
|
12753
|
+
"Purple": "Lilla",
|
12754
|
+
"Red": "Rød",
|
12755
|
+
"Redo": "Gjør om",
|
12756
|
+
"Remove Format": "Fjern formatering",
|
12757
|
+
"Remove color": "Fjern farge",
|
12758
|
+
"Resize image": "",
|
12759
|
+
"Resize image to %0": "",
|
12760
|
+
"Resize image to the original size": "",
|
12761
|
+
"Rich Text Editor": "Tekstredigeringsverktøy for rik tekst",
|
12762
|
+
"Rich Text Editor, %0": "Tekstredigeringsverktøy for rik tekst, %0",
|
12763
|
+
"Right aligned image": "Høyrejustert bilde",
|
12764
|
+
"Save": "Lagre",
|
12765
|
+
"Select all": "Velg alt ",
|
12766
|
+
"Selecting resized image failed": "Kunne ikke velge bilde med endret størrelse",
|
12767
|
+
"Show more items": "Vis flere elementer",
|
12768
|
+
"Side image": "Sidestilt bilde",
|
12769
|
+
"Small": "Liten",
|
12770
|
+
"Source": "Kilde",
|
12771
|
+
"Strikethrough": "Gjennomstreket",
|
12772
|
+
"Subscript": "Senket skrift",
|
12773
|
+
"Superscript": "Hevet skrift",
|
12774
|
+
"Text alignment": "Tekstjustering",
|
12775
|
+
"Text alignment toolbar": "Verktøylinje for tekstjustering",
|
12776
|
+
"Text alternative": "Tekstalternativ",
|
12777
|
+
"Tiny": "Veldig liten",
|
12778
|
+
"Turquoise": "Turkis",
|
12779
|
+
"Underline": "Understreket",
|
12780
|
+
"Undo": "Angre",
|
12781
|
+
"Upload failed": "Kunne ikke laste opp",
|
12782
|
+
"Upload in progress": "Laster opp fil",
|
12783
|
+
"White": "Hvit",
|
12784
|
+
"Widget toolbar": "Widget verktøylinje ",
|
12785
|
+
"Words: %0": "Ord: %0",
|
12786
|
+
"Yellow": "Gul",
|
12787
|
+
"image widget": "Bilde-widget",
|
12788
|
+
// additinal custom words
|
12789
|
+
"Maximize": LANG.QMSCKEDITOR.MAXIMIZE,
|
12790
|
+
"Minimize": LANG.QMSCKEDITOR.MINIMIZE,
|
12791
|
+
"Paragraph": LANG.QMSCKEDITOR.PARAGRAPH,
|
12792
|
+
"Heading": LANG.QMSCKEDITOR.HEADING,
|
12793
|
+
"Heading %0": LANG.QMSCKEDITOR.HEADING_NUMBER,
|
12794
|
+
"Choose heading": LANG.QMSCKEDITOR.CHOOSE_HEADING,
|
12795
|
+
"Special characters": LANG.QMSCKEDITOR.SPECIAL_CHARACTERS,
|
12796
|
+
"Business Process Model and Notation": LANG.QMSCKEDITOR.BPMN,
|
12797
|
+
// Image
|
12798
|
+
"Link image": LANG.QMSCKEDITOR.LINK_IMAGE,
|
12799
|
+
"Edit link": LANG.QMSCKEDITOR.EDIT_LINK,
|
12800
|
+
"This link has no URL": LANG.QMSCKEDITOR.THIS_LINK_HAS_NO_URL,
|
12801
|
+
"Image Map": LANG.QMSCKEDITOR.IMAGE_MAP,
|
12802
|
+
// Media
|
12803
|
+
"Insert media": LANG.QMSCKEDITOR.INSERT_MEDIA,
|
12804
|
+
"Resize media": LANG.QMSCKEDITOR.RESIZE_MEDIA,
|
12805
|
+
"Full size media": LANG.QMSCKEDITOR.FULL_SIZE_MEDIA,
|
12806
|
+
"Side media": LANG.QMSCKEDITOR.SIDE_MEDIA,
|
12807
|
+
"Left aligned media": LANG.QMSCKEDITOR.LEFT_ALIGNED_MEDIA,
|
12808
|
+
"Centered media": LANG.QMSCKEDITOR.CENTERED_MEDIA,
|
12809
|
+
"Right aligned media": LANG.QMSCKEDITOR.RIGHT_ALIGNED_MEDIA,
|
12810
|
+
"Paste the media URL in the input.": LANG.QMSCKEDITOR.PASTE_THE_MEDIA_URL_IN_THE_INPUT,
|
12811
|
+
"Tip: Paste the URL into the content to embed faster.": LANG.QMSCKEDITOR.MEDIA_TIP,
|
12812
|
+
// Video
|
12813
|
+
"Browse Video": LANG.QMSCKEDITOR.BROWSE_VIDEO,
|
12814
|
+
"Full size video": LANG.QMSCKEDITOR.FULL_SIZE_VIDEO,
|
12815
|
+
"Left aligned video": LANG.QMSCKEDITOR.LEFT_ALIGNED_VIDEO,
|
12816
|
+
"Centered video": LANG.QMSCKEDITOR.CENTERED_VIDEO,
|
12817
|
+
"Right aligned video": LANG.QMSCKEDITOR.RIGHT_ALIGNED_VIDEO,
|
12818
|
+
// Link
|
12819
|
+
"Link": LANG.QMSCKEDITOR.LINK,
|
12820
|
+
// Anchor
|
12821
|
+
"Anchor": LANG.QMSCKEDITOR.ANCHOR,
|
12822
|
+
"Anchor name": LANG.QMSCKEDITOR.ANCHOR_NAME,
|
12823
|
+
// Find and replace
|
12824
|
+
"Find and replace": LANG.QMSCKEDITOR.FIND_AND_REPLACE,
|
12825
|
+
"Find in text…": LANG.QMSCKEDITOR.FIND_IN_TEXT,
|
12826
|
+
"Match case": LANG.QMSCKEDITOR.MATCH_CASE,
|
12827
|
+
"Whole words only": LANG.QMSCKEDITOR.WHOLE_WORDS_ONLY,
|
12828
|
+
"Find": LANG.QMSCKEDITOR.FIND,
|
12829
|
+
"Replace with…": LANG.QMSCKEDITOR.REPLACE_WITH,
|
12830
|
+
"Replace all": LANG.QMSCKEDITOR.REPLACE_ALL,
|
12831
|
+
"Replace": LANG.QMSCKEDITOR.REPLACE,
|
12832
|
+
// Table
|
12833
|
+
"Column": LANG.QMSCKEDITOR.COLUMN,
|
12834
|
+
"Header column": LANG.QMSCKEDITOR.HEADER_COLUMN,
|
12835
|
+
"Insert column left": LANG.QMSCKEDITOR.INSERT_COLUMN_LEFT,
|
12836
|
+
"Insert column right": LANG.QMSCKEDITOR.INSERT_COLUMN_RIGHT,
|
12837
|
+
"Delete column": LANG.QMSCKEDITOR.DELETE_COLUMN,
|
12838
|
+
"Select column": LANG.QMSCKEDITOR.SELECT_COLUMN,
|
12839
|
+
"Row": LANG.QMSCKEDITOR.ROW,
|
12840
|
+
"Header row": LANG.QMSCKEDITOR.HEADER_ROW,
|
12841
|
+
"Insert row above": LANG.QMSCKEDITOR.INSERT_ROW_ABOVE,
|
12842
|
+
"Insert row below": LANG.QMSCKEDITOR.INSERT_ROW_BELOW,
|
12843
|
+
"Delete row": LANG.QMSCKEDITOR.DELETE_ROW,
|
12844
|
+
"Select row": LANG.QMSCKEDITOR.SELECT_ROW,
|
12845
|
+
"Merge cells": LANG.QMSCKEDITOR.MERGE_CELLS,
|
12846
|
+
"Merge cell up": LANG.QMSCKEDITOR.MERGE_CELL_UP,
|
12847
|
+
"Merge cell right": LANG.QMSCKEDITOR.MERGE_CELL_RIGHT,
|
12848
|
+
"Merge cell down": LANG.QMSCKEDITOR.MERGE_CELL_DOWN,
|
12849
|
+
"Merge cell left": LANG.QMSCKEDITOR.MERGE_CELL_LEFT,
|
12850
|
+
"Split cell vertically": LANG.QMSCKEDITOR.SPLIT_CELL_VERTICALLY,
|
12851
|
+
"Split cell horizontally": LANG.QMSCKEDITOR.SPLIT_CELL_HORIZONTALLY,
|
12852
|
+
"Table properties": LANG.QMSCKEDITOR.TABLE_PROPERTIES,
|
12853
|
+
"Border": LANG.QMSCKEDITOR.BORDER,
|
12854
|
+
"Style": LANG.QMSCKEDITOR.STYLE,
|
12855
|
+
"None": LANG.QMSCKEDITOR.NONE,
|
12856
|
+
"Solid": LANG.QMSCKEDITOR.SOLID,
|
12857
|
+
"Dotted": LANG.QMSCKEDITOR.DOTTED,
|
12858
|
+
"Dashed": LANG.QMSCKEDITOR.DASHED,
|
12859
|
+
"Double": LANG.QMSCKEDITOR.DOUBLE,
|
12860
|
+
"Groove": LANG.QMSCKEDITOR.GROOVE,
|
12861
|
+
"Ridge": LANG.QMSCKEDITOR.RIDGE,
|
12862
|
+
"Inset": LANG.QMSCKEDITOR.INSET,
|
12863
|
+
"Outset": LANG.QMSCKEDITOR.OUTSET,
|
12864
|
+
"Color": LANG.QMSCKEDITOR.COLOR,
|
12865
|
+
"Color picker": LANG.QMSCKEDITOR.COLOR_PICKER,
|
12866
|
+
"Width": LANG.QMSCKEDITOR.WIDTH,
|
12867
|
+
"Height": LANG.QMSCKEDITOR.HEIGHT,
|
12868
|
+
"Background": LANG.QMSCKEDITOR.BACKGROUND,
|
12869
|
+
"Dimensions": LANG.QMSCKEDITOR.DIMENSION,
|
12870
|
+
"Alignment": LANG.QMSCKEDITOR.ALIGNMENT,
|
12871
|
+
"Align table to the left": LANG.QMSCKEDITOR.ALIGN_TABLE_LEFT,
|
12872
|
+
"Center table": LANG.QMSCKEDITOR.CENTER_TABLE,
|
12873
|
+
"Align table to the right": LANG.QMSCKEDITOR.ALIGN_TABLE_RIGHT,
|
12874
|
+
"Cell properties": LANG.QMSCKEDITOR.CELL_PROPERTIES,
|
12875
|
+
"Padding": LANG.QMSCKEDITOR.PADDING,
|
12876
|
+
"Table cell text alignment": LANG.QMSCKEDITOR.TABLE_CELL_TEXT_ALIGNMENT,
|
12877
|
+
"Align cell text to the left": LANG.QMSCKEDITOR.ALIGN_CELL_TEXT_LEFT,
|
12878
|
+
"Align cell text to the center": LANG.QMSCKEDITOR.ALIGN_CELL_TEXT_CENTER,
|
12879
|
+
"Align cell text to the right": LANG.QMSCKEDITOR.ALIGN_CELL_TEXT_RIGHT,
|
12880
|
+
"Justify cell text": LANG.QMSCKEDITOR.JUSTIFY_CELL_TEXT,
|
12881
|
+
"Align cell text to the top": LANG.QMSCKEDITOR.ALIGN_CELL_TEXT_TOP,
|
12882
|
+
"Align cell text to the middle": LANG.QMSCKEDITOR.ALIGN_CELL_TEXT_MIDDLE,
|
12883
|
+
"Align cell text to the bottom": LANG.QMSCKEDITOR.ALIGN_CELL_TEXT_BOTTOM,
|
12884
|
+
// Other
|
12885
|
+
"Toggle Toolbar": LANG.QMSCKEDITOR.TOGGLE_TOOLBAR,
|
12886
|
+
"Insert table": LANG.QMSCKEDITOR.INSERT_TABLE,
|
12887
|
+
"Tooltip": LANG.QMSCKEDITOR.TOOLTIP,
|
12888
|
+
"Timestamp": LANG.QMSCKEDITOR.TIMESTAMP,
|
12889
|
+
"Add Template": LANG.QMSCKEDITOR.ADD_TEMPLATE,
|
12890
|
+
"Templates": LANG.QMSCKEDITOR.TEMPLATES,
|
12891
|
+
"About CKEditor": LANG.QMSCKEDITOR.ABOUT_CKEDITOR,
|
12892
|
+
"Create Table of Contents": LANG.QMSCKEDITOR.CREATE_TABLE_OF_CONTENTS,
|
12893
|
+
}
|
12894
|
+
};
|
12895
|
+
}
|
12896
|
+
const CKEditorBuildResourceFunctions = {
|
12897
|
+
BuildResourceNO,
|
12898
|
+
};
|
12899
|
+
|
11974
12900
|
var IFRAME_SRC = '//cdn.iframe.ly/api/iframe';
|
11975
12901
|
var API_KEY = 'b499e92e857f435c39c14d';
|
11976
|
-
function getCKEditorConfiguration(itemToolbar,
|
12902
|
+
function getCKEditorConfiguration(itemToolbar, LANG = null, language = 'en') {
|
12903
|
+
if (window['CKEDITOR_TRANSLATIONS']) {
|
12904
|
+
// Add dictionary no for ckeditor 5 (locale)
|
12905
|
+
window['CKEDITOR_TRANSLATIONS'].no = CKEditorBuildResourceFunctions.BuildResourceNO(LANG);
|
12906
|
+
window['CKEDITOR_TRANSLATIONS'].nn = CKEditorBuildResourceFunctions.BuildResourceNO(LANG);
|
12907
|
+
}
|
11977
12908
|
const ckeditorConfig = {
|
11978
12909
|
toolbar: {
|
11979
12910
|
items: [],
|
@@ -11981,7 +12912,7 @@ function getCKEditorConfiguration(itemToolbar, availableLanguages = null) {
|
|
11981
12912
|
viewportTopOffset: 30,
|
11982
12913
|
shouldNotGroupWhenFull: true
|
11983
12914
|
},
|
11984
|
-
language:
|
12915
|
+
language: language,
|
11985
12916
|
table: {
|
11986
12917
|
contentToolbar: ['tableColumn', 'tableRow', 'mergeTableCells', 'tableProperties', 'tableCellProperties']
|
11987
12918
|
},
|
@@ -12002,15 +12933,15 @@ function getCKEditorConfiguration(itemToolbar, availableLanguages = null) {
|
|
12002
12933
|
'|',
|
12003
12934
|
'imageMap',
|
12004
12935
|
'|',
|
12005
|
-
'qmsFlowchart',
|
12006
|
-
'|',
|
12936
|
+
// 'qmsFlowchart',
|
12937
|
+
// '|',
|
12007
12938
|
'qmsBpmn'
|
12008
12939
|
],
|
12009
12940
|
resizeOptions: [
|
12010
12941
|
{
|
12011
12942
|
name: 'imageResize:original',
|
12012
12943
|
value: null,
|
12013
|
-
label:
|
12944
|
+
label: LANG.QMSCKEDITOR.ORIGINAL,
|
12014
12945
|
icon: 'original'
|
12015
12946
|
},
|
12016
12947
|
{
|
@@ -12051,7 +12982,7 @@ function getCKEditorConfiguration(itemToolbar, availableLanguages = null) {
|
|
12051
12982
|
{
|
12052
12983
|
name: 'videoResize:original',
|
12053
12984
|
value: null,
|
12054
|
-
label:
|
12985
|
+
label: LANG.QMSCKEDITOR.ORIGINAL,
|
12055
12986
|
icon: 'original'
|
12056
12987
|
},
|
12057
12988
|
{
|
@@ -12092,7 +13023,7 @@ function getCKEditorConfiguration(itemToolbar, availableLanguages = null) {
|
|
12092
13023
|
{
|
12093
13024
|
name: 'mediaResize:original',
|
12094
13025
|
value: null,
|
12095
|
-
label:
|
13026
|
+
label: LANG.QMSCKEDITOR.ORIGINAL,
|
12096
13027
|
icon: 'original'
|
12097
13028
|
},
|
12098
13029
|
{
|
@@ -12137,7 +13068,7 @@ function getCKEditorConfiguration(itemToolbar, availableLanguages = null) {
|
|
12137
13068
|
{
|
12138
13069
|
name: 'mediaResize:original',
|
12139
13070
|
value: null,
|
12140
|
-
label:
|
13071
|
+
label: LANG.QMSCKEDITOR.ORIGINAL,
|
12141
13072
|
icon: 'original'
|
12142
13073
|
},
|
12143
13074
|
{
|
@@ -12249,11 +13180,6 @@ function getCKEditorConfiguration(itemToolbar, availableLanguages = null) {
|
|
12249
13180
|
generatePtSetting(48)
|
12250
13181
|
]
|
12251
13182
|
},
|
12252
|
-
getTranslateLabel: function (propertyResource, defaultLabel) {
|
12253
|
-
if (availableLanguages && availableLanguages.QMSCKEDITOR[propertyResource])
|
12254
|
-
return availableLanguages.QMSCKEDITOR[propertyResource];
|
12255
|
-
return defaultLabel;
|
12256
|
-
}
|
12257
13183
|
};
|
12258
13184
|
if (itemToolbar) {
|
12259
13185
|
const itemArray = itemToolbar.split(',');
|
@@ -15429,6 +16355,12 @@ class BpmnService {
|
|
15429
16355
|
joint.ui.FreeTransform.clear(paper);
|
15430
16356
|
freeTransform = null;
|
15431
16357
|
joint.ui.Halo.clear(paper);
|
16358
|
+
const cells = graph.getCells();
|
16359
|
+
cells.forEach((cell) => {
|
16360
|
+
if (cell.get('type') === 'bpmn2.HeaderedPool') {
|
16361
|
+
cell.set('z', -1);
|
16362
|
+
}
|
16363
|
+
});
|
15432
16364
|
}
|
15433
16365
|
function isSelectedCellViewInSelection(selection) {
|
15434
16366
|
const models = selection.collection.toArray() || [];
|
@@ -15874,6 +16806,7 @@ class BpmnService {
|
|
15874
16806
|
}
|
15875
16807
|
}
|
15876
16808
|
onChangeLinkLabel(cell, defSize) {
|
16809
|
+
var _a, _b;
|
15877
16810
|
if (cell.isLink()) {
|
15878
16811
|
let size = defSize;
|
15879
16812
|
let refPos = 0;
|
@@ -15886,8 +16819,8 @@ class BpmnService {
|
|
15886
16819
|
refPos += 1;
|
15887
16820
|
return true;
|
15888
16821
|
});
|
15889
|
-
if (graph.getLinks()[refPos].attributes.attrs.text &&
|
15890
|
-
graph.getLinks()[refPos].attributes.attrs.text['font-size']) {
|
16822
|
+
if (((_a = graph.getLinks()[refPos]) === null || _a === void 0 ? void 0 : _a.attributes.attrs.text) &&
|
16823
|
+
((_b = graph.getLinks()[refPos]) === null || _b === void 0 ? void 0 : _b.attributes.attrs.text['font-size'])) {
|
15891
16824
|
size = graph.getLinks()[refPos].attributes.attrs.text['font-size'];
|
15892
16825
|
}
|
15893
16826
|
graph.getLinks()[refPos].prop('labels/0/attrs/label/fontSize', size);
|
@@ -18940,7 +19873,7 @@ function invalidURLValidator(regex) {
|
|
18940
19873
|
}
|
18941
19874
|
|
18942
19875
|
class QMSCKEditorImageMapComponent extends QMSCKEditorBaseComponent {
|
18943
|
-
constructor(renderer, cdr, dialog, translate, linkService, dialogRef, commonService, data, iconRegistry, sanitizer) {
|
19876
|
+
constructor(renderer, cdr, dialog, translate, linkService, dialogRef, commonService, data, iconRegistry, sanitizer, treeService, selectProcessDocumentGlobalService) {
|
18944
19877
|
super();
|
18945
19878
|
this.renderer = renderer;
|
18946
19879
|
this.cdr = cdr;
|
@@ -18950,6 +19883,8 @@ class QMSCKEditorImageMapComponent extends QMSCKEditorBaseComponent {
|
|
18950
19883
|
this.dialogRef = dialogRef;
|
18951
19884
|
this.commonService = commonService;
|
18952
19885
|
this.data = data;
|
19886
|
+
this.treeService = treeService;
|
19887
|
+
this.selectProcessDocumentGlobalService = selectProcessDocumentGlobalService;
|
18953
19888
|
this.linkTypes = [];
|
18954
19889
|
this.targets = [];
|
18955
19890
|
this.protocols = [];
|
@@ -18978,6 +19913,12 @@ class QMSCKEditorImageMapComponent extends QMSCKEditorBaseComponent {
|
|
18978
19913
|
this.anchorDocuments = [];
|
18979
19914
|
//documentAnchors: IAnchor[];
|
18980
19915
|
this.imageListeners = [];
|
19916
|
+
this.documentTypes = [
|
19917
|
+
DocumentNodeType$1.Document,
|
19918
|
+
DocumentNodeType$1.FileDocument,
|
19919
|
+
DocumentNodeType$1.LinkDocument,
|
19920
|
+
DocumentNodeType$1.ShortcutDocument
|
19921
|
+
];
|
18981
19922
|
this.imageMapData = data;
|
18982
19923
|
this.naturalImageHeight = this.imageMapData.imageHeight;
|
18983
19924
|
this.naturalImageWidth = this.imageMapData.imageWidth;
|
@@ -19300,34 +20241,222 @@ class QMSCKEditorImageMapComponent extends QMSCKEditorBaseComponent {
|
|
19300
20241
|
}
|
19301
20242
|
}
|
19302
20243
|
eHandbook(isOnlyDocument, isAnchorDocument) {
|
19303
|
-
|
19304
|
-
|
19305
|
-
|
19306
|
-
|
19307
|
-
|
19308
|
-
|
19309
|
-
|
19310
|
-
|
19311
|
-
|
19312
|
-
|
19313
|
-
|
19314
|
-
|
19315
|
-
|
19316
|
-
|
19317
|
-
|
19318
|
-
|
19319
|
-
|
19320
|
-
|
20244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
20245
|
+
this.processConfig = {
|
20246
|
+
allowSelectFolder: true,
|
20247
|
+
areaOfCurrentProcess: '',
|
20248
|
+
showCheckBox: false,
|
20249
|
+
allowMultipleCheck: false,
|
20250
|
+
onlyCheckBoxForChild: false,
|
20251
|
+
moduleId: DataType.process,
|
20252
|
+
openIconColor: '#1954A9',
|
20253
|
+
closeIconColor: '#a4b0de',
|
20254
|
+
singleSelectedNode: true,
|
20255
|
+
onlyFolder: false,
|
20256
|
+
selectOne: true
|
20257
|
+
};
|
20258
|
+
this.documentConfig = {
|
20259
|
+
allowSelectFolder: !isOnlyDocument,
|
20260
|
+
areaOfCurrentProcess: '',
|
20261
|
+
showCheckBox: false,
|
20262
|
+
moduleId: DataType.document,
|
20263
|
+
allowMultipleCheck: false,
|
20264
|
+
onlyCheckBoxForChild: false,
|
20265
|
+
openIconColor: '#1954A9',
|
20266
|
+
closeIconColor: '#4acaff',
|
20267
|
+
singleSelectedNode: true,
|
20268
|
+
onlyFolder: false,
|
20269
|
+
selectOne: true
|
20270
|
+
};
|
20271
|
+
const data = new SelectProcessDocumentPopupData();
|
20272
|
+
data.moduleId = ModuleType$1.documentProcess;
|
20273
|
+
data.moduleName = this.LANG.QMSCKEDITOR.DOCUMENT_PROCESS;
|
20274
|
+
if (!isOnlyDocument) {
|
20275
|
+
const treeProcessData = yield this.treeService.getProcessAreaContents().toPromise();
|
20276
|
+
data.treeData1 = (treeProcessData === null || treeProcessData === void 0 ? void 0 : treeProcessData.areas.map((x) => {
|
20277
|
+
return {
|
20278
|
+
id: x.id,
|
20279
|
+
name: x.name,
|
20280
|
+
parentId: x.parentId === guidHelper.empty ? '' : x.parentId,
|
20281
|
+
statusId: 0,
|
20282
|
+
statusName: '',
|
20283
|
+
displayId: 0,
|
20284
|
+
expandable: true
|
20285
|
+
};
|
20286
|
+
})) || [];
|
20287
|
+
}
|
20288
|
+
const treeDocumentData = yield this.treeService.getFolderChildrens().toPromise();
|
20289
|
+
data.treeData2 = treeDocumentData === null || treeDocumentData === void 0 ? void 0 : treeDocumentData.map((x) => {
|
20290
|
+
return {
|
20291
|
+
id: x.id.toString(),
|
20292
|
+
name: x.name.toString(),
|
20293
|
+
parentId: !x.parentHandbookId ? '' : x.parentHandbookId.toString(),
|
20294
|
+
statusId: 0,
|
20295
|
+
statusName: '',
|
20296
|
+
displayId: 0,
|
20297
|
+
expandable: x.type > DocumentNodeType$1.ShortcutDocument,
|
20298
|
+
levelType: x.type
|
20299
|
+
};
|
20300
|
+
});
|
20301
|
+
data.treeConfig1 = this.processConfig;
|
20302
|
+
data.treeConfig2 = this.documentConfig;
|
20303
|
+
data.splitView = false;
|
20304
|
+
data.isSelectOne = true;
|
20305
|
+
data.tooltipLocationSearchResult = true;
|
20306
|
+
const dialogRef = this.dialog.open(SelectProcessDocumentPopupComponent, {
|
20307
|
+
width: '768px',
|
20308
|
+
minHeight: '690px',
|
20309
|
+
data,
|
20310
|
+
panelClass: ['related-process__popup', 'custom-mat-dialog-container'],
|
20311
|
+
autoFocus: false
|
20312
|
+
});
|
20313
|
+
dialogRef.componentInstance.onSearch.subscribe((keyword) => {
|
20314
|
+
if (!keyword || keyword.trim() === '')
|
20315
|
+
return;
|
20316
|
+
if (this.data.enabledInterconnected) {
|
20317
|
+
forkJoin$1([this.treeService.searchProcess(keyword), this.treeService.searchDocument(keyword), this.treeService.searchProcessInterconnected(keyword)])
|
20318
|
+
.toPromise()
|
20319
|
+
.then(([process, document, interconnected]) => {
|
20320
|
+
if (process && document && interconnected) {
|
20321
|
+
const resultProcessSearch = process.map((x) => {
|
20322
|
+
return {
|
20323
|
+
id: x.entityId,
|
20324
|
+
itemNumberId: x.processNumber.toString(),
|
20325
|
+
itemName: x.name,
|
20326
|
+
itemType: DataType.process,
|
20327
|
+
status: x.status,
|
20328
|
+
statusName: x.approvalStatus,
|
20329
|
+
location: x.location,
|
20330
|
+
};
|
20331
|
+
});
|
20332
|
+
const resultDocumentSearch = document.documents.map((x) => {
|
20333
|
+
return {
|
20334
|
+
id: x.id.toString(),
|
20335
|
+
itemNumberId: x.id.toString(),
|
20336
|
+
itemName: x.name,
|
20337
|
+
itemType: DataType.document,
|
20338
|
+
status: 0,
|
20339
|
+
statusName: x.approvalStatus,
|
20340
|
+
location: x.location,
|
20341
|
+
};
|
20342
|
+
});
|
20343
|
+
const resultInterconnectedSearch = interconnected.map((x) => {
|
20344
|
+
return {
|
20345
|
+
id: x.processInterconnectedEntityId,
|
20346
|
+
itemNumberId: x.processInterconnectedNumber.toString(),
|
20347
|
+
itemName: x.name,
|
20348
|
+
itemType: DataType.processInterconnected,
|
20349
|
+
status: x.status,
|
20350
|
+
statusName: x.approvalStatus,
|
20351
|
+
location: x.location,
|
20352
|
+
};
|
20353
|
+
});
|
20354
|
+
const resulSearch = [...resultProcessSearch, ...resultDocumentSearch, ...resultInterconnectedSearch];
|
20355
|
+
this.selectProcessDocumentGlobalService.setSearchRelated(resulSearch);
|
20356
|
+
}
|
20357
|
+
});
|
19321
20358
|
}
|
19322
20359
|
else {
|
19323
|
-
this.
|
19324
|
-
|
19325
|
-
|
19326
|
-
|
20360
|
+
forkJoin$1([this.treeService.searchProcess(keyword), this.treeService.searchDocument(keyword)])
|
20361
|
+
.toPromise()
|
20362
|
+
.then(([process, document]) => {
|
20363
|
+
if (process && document) {
|
20364
|
+
const resultProcessSearch = process.map((x) => {
|
20365
|
+
return {
|
20366
|
+
id: x.entityId,
|
20367
|
+
itemNumberId: x.processNumber.toString(),
|
20368
|
+
itemName: x.name,
|
20369
|
+
itemType: DataType.process,
|
20370
|
+
status: x.status,
|
20371
|
+
statusName: x.approvalStatus,
|
20372
|
+
location: x.location,
|
20373
|
+
};
|
20374
|
+
});
|
20375
|
+
const resultDocumentSearch = document.documents.map((x) => {
|
20376
|
+
return {
|
20377
|
+
id: x.id.toString(),
|
20378
|
+
itemNumberId: x.id.toString(),
|
20379
|
+
itemName: x.name,
|
20380
|
+
itemType: DataType.document,
|
20381
|
+
status: 0,
|
20382
|
+
statusName: x.approvalStatus,
|
20383
|
+
location: x.location,
|
20384
|
+
};
|
20385
|
+
});
|
20386
|
+
const resulSearch = [...resultProcessSearch, ...resultDocumentSearch];
|
20387
|
+
this.selectProcessDocumentGlobalService.setSearchRelated(resulSearch);
|
20388
|
+
}
|
20389
|
+
});
|
20390
|
+
}
|
20391
|
+
});
|
20392
|
+
dialogRef.componentInstance.onExpandProcessArea.subscribe((area) => {
|
20393
|
+
this.treeService.getProcessAreaContents(area.id, true, this.data.enabledInterconnected).toPromise().then(res => {
|
20394
|
+
if (res) {
|
20395
|
+
const areas = res.areas.map((x) => {
|
20396
|
+
return {
|
20397
|
+
id: x.id.toString(),
|
20398
|
+
name: x.name,
|
20399
|
+
parentId: x.parentId,
|
20400
|
+
expandable: true,
|
20401
|
+
statusId: x.status,
|
20402
|
+
statusName: x.statusName,
|
20403
|
+
displayId: 0
|
20404
|
+
};
|
20405
|
+
}) || [];
|
20406
|
+
const processes = res.processes.map((x) => {
|
20407
|
+
return {
|
20408
|
+
id: x.entityId.toString(),
|
20409
|
+
name: x.name,
|
20410
|
+
parentId: x.processAreaId,
|
20411
|
+
expandable: false,
|
20412
|
+
statusId: x.status,
|
20413
|
+
statusName: x.approvalStatus,
|
20414
|
+
displayId: x.processNumber,
|
20415
|
+
itemType: x.processClassification === ProcessClassification.InterconnectedProcess ? DataType.processInterconnected : DataType.process
|
20416
|
+
};
|
20417
|
+
}) || [];
|
20418
|
+
this.selectProcessDocumentGlobalService.setProcessAreaChildren([...areas, ...processes]);
|
20419
|
+
}
|
20420
|
+
});
|
20421
|
+
});
|
20422
|
+
dialogRef.componentInstance.onExpandFolder.subscribe((folder) => {
|
20423
|
+
this.treeService
|
20424
|
+
.getFolderChildrens(folder.id)
|
20425
|
+
.toPromise().then((res) => {
|
20426
|
+
if (res) {
|
20427
|
+
const childs = res.map((x) => {
|
20428
|
+
return {
|
20429
|
+
id: x.id.toString(),
|
20430
|
+
name: x.name.toString(),
|
20431
|
+
parentId: this.getParentId(x),
|
20432
|
+
statusId: 0,
|
20433
|
+
statusName: x.approvalStatus,
|
20434
|
+
displayId: x.id,
|
20435
|
+
expandable: !this.documentTypes.includes(x.type),
|
20436
|
+
levelType: !this.documentTypes.includes(x.type) ? x.type : folder.levelType
|
20437
|
+
};
|
20438
|
+
});
|
20439
|
+
this.selectProcessDocumentGlobalService.setFolderChildren(childs);
|
20440
|
+
}
|
20441
|
+
});
|
20442
|
+
});
|
20443
|
+
dialogRef.afterClosed().subscribe((result) => {
|
20444
|
+
if (result === null || result === void 0 ? void 0 : result.length) {
|
20445
|
+
const resultData = result[0];
|
20446
|
+
if (isAnchorDocument) {
|
20447
|
+
this.documentId = resultData.id;
|
20448
|
+
this.getAnchorDocument(resultData.id);
|
20449
|
+
}
|
20450
|
+
else {
|
20451
|
+
this.parseLinkUrl(this.getLinkURL(resultData));
|
20452
|
+
this.selectedProtocol = ProtocolTypeName.other;
|
20453
|
+
if (!this.advisoryTitle) {
|
20454
|
+
this.advisoryTitle = resultData.itemName;
|
20455
|
+
}
|
19327
20456
|
}
|
20457
|
+
this.updateAreaValues();
|
19328
20458
|
}
|
19329
|
-
|
19330
|
-
}
|
20459
|
+
});
|
19331
20460
|
});
|
19332
20461
|
}
|
19333
20462
|
getAnchorDocument(documentId) {
|
@@ -19424,6 +20553,34 @@ class QMSCKEditorImageMapComponent extends QMSCKEditorBaseComponent {
|
|
19424
20553
|
//this.dialogRef.close();
|
19425
20554
|
this.onCloseDialog();
|
19426
20555
|
}
|
20556
|
+
getParentId(item) {
|
20557
|
+
if (!this.documentTypes.includes(item.type)) {
|
20558
|
+
return !item.parentHandbookId ? '' : item.parentHandbookId.toString();
|
20559
|
+
}
|
20560
|
+
return !item.parentFolderId ? '' : item.parentFolderId.toString();
|
20561
|
+
}
|
20562
|
+
getLinkURL(data) {
|
20563
|
+
let url = '';
|
20564
|
+
switch (data === null || data === void 0 ? void 0 : data.itemType) {
|
20565
|
+
case DataType.document:
|
20566
|
+
url = `/document/${data.id}`;
|
20567
|
+
break;
|
20568
|
+
case DataType.process:
|
20569
|
+
url = `/process-detail/${data.displayId}`;
|
20570
|
+
break;
|
20571
|
+
case DataType.area:
|
20572
|
+
url = `/area/detail/${data.id}`;
|
20573
|
+
break;
|
20574
|
+
case DataType.folder:
|
20575
|
+
url = `/folder/${data.id}`;
|
20576
|
+
break;
|
20577
|
+
case DataType.processInterconnected:
|
20578
|
+
url = `/process-interconnected/${data.displayId}`;
|
20579
|
+
default:
|
20580
|
+
break;
|
20581
|
+
}
|
20582
|
+
return url;
|
20583
|
+
}
|
19427
20584
|
}
|
19428
20585
|
QMSCKEditorImageMapComponent.decorators = [
|
19429
20586
|
{ type: Component, args: [{
|
@@ -19442,7 +20599,9 @@ QMSCKEditorImageMapComponent.ctorParameters = () => [
|
|
19442
20599
|
{ type: QMSCKEditorCommonService },
|
19443
20600
|
{ type: QMSCKEditorImageMap, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
19444
20601
|
{ type: MatIconRegistry },
|
19445
|
-
{ type: DomSanitizer }
|
20602
|
+
{ type: DomSanitizer },
|
20603
|
+
{ type: QMSCKEditorTreeService },
|
20604
|
+
{ type: QMSSelectProcessDocumentGlobalService }
|
19446
20605
|
];
|
19447
20606
|
QMSCKEditorImageMapComponent.propDecorators = {
|
19448
20607
|
ckEditor: [{ type: Input }],
|
@@ -26010,6 +27169,21 @@ var VideoUploadMode;
|
|
26010
27169
|
VideoUploadMode[VideoUploadMode["OnlyPickFromArchive"] = 2] = "OnlyPickFromArchive";
|
26011
27170
|
})(VideoUploadMode || (VideoUploadMode = {}));
|
26012
27171
|
|
27172
|
+
class QMSCKEditorVideo {
|
27173
|
+
constructor(id, src, controls = true, poster, width, height) {
|
27174
|
+
this.id = id ? id : this.generateId();
|
27175
|
+
this.src = src;
|
27176
|
+
this.controls = controls;
|
27177
|
+
this.poster = poster;
|
27178
|
+
this.width = width ? width : VideoConst.DEFAULT_VIDEO_WIDTH;
|
27179
|
+
this.height = height ? height : VideoConst.DEFAULT_VIDEO_HEIGHT;
|
27180
|
+
}
|
27181
|
+
generateId() {
|
27182
|
+
const now = new Date();
|
27183
|
+
return 'video' + now.getFullYear() + (now.getMonth() + 1) + now.getDate() + now.getHours() + now.getMinutes() + now.getSeconds();
|
27184
|
+
}
|
27185
|
+
}
|
27186
|
+
|
26013
27187
|
class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
26014
27188
|
/**
|
26015
27189
|
* Constructor
|
@@ -26028,6 +27202,7 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26028
27202
|
this.qmsckContentOutput = new EventEmitter();
|
26029
27203
|
this.ckEditorEventConst = CKEditorEventConst;
|
26030
27204
|
this.isToolbarItemsIdSet = false;
|
27205
|
+
this.language = 'en';
|
26031
27206
|
this.ckTagname = "div";
|
26032
27207
|
}
|
26033
27208
|
onMessage(event) {
|
@@ -26072,6 +27247,7 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26072
27247
|
this.ckEditor = this.qmsckPlugin.pluginObject;
|
26073
27248
|
this.translate.getLanguageSubject$.pipe(takeUntil(this.ngUnsubcribe)).subscribe((res) => {
|
26074
27249
|
if (res) {
|
27250
|
+
this.language = res;
|
26075
27251
|
this.LANG = this.translate.getObjectLang(res);
|
26076
27252
|
}
|
26077
27253
|
});
|
@@ -26086,7 +27262,7 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26086
27262
|
}
|
26087
27263
|
toolbarItems += ',' + strToolbars; // disable qmsFlowchart until NK-440 done
|
26088
27264
|
}
|
26089
|
-
this.ckeditorConfig = CKEditorCommonFunctions.getCKEditorConfiguration(toolbarItems, this.LANG);
|
27265
|
+
this.ckeditorConfig = CKEditorCommonFunctions.getCKEditorConfiguration(toolbarItems, this.LANG, this.language);
|
26090
27266
|
if (this.ckeditorConfig)
|
26091
27267
|
this.ckeditorConfig.containerId = this.editorId;
|
26092
27268
|
if (this.qmsckData.hideImgOptions) {
|
@@ -26221,7 +27397,7 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26221
27397
|
this.ckEditor.defaultConfig = Object.assign(this.ckEditor.defaultConfig || {}, mathTypeConfig);
|
26222
27398
|
}
|
26223
27399
|
onChanged({ editor }) {
|
26224
|
-
//this.qmsckContentInput = editor.getData();
|
27400
|
+
// this.qmsckContentInput = editor.getData();
|
26225
27401
|
this.qmsckContentOutput.emit(this.qmsckContentInput);
|
26226
27402
|
}
|
26227
27403
|
onBlur({ editor }) {
|
@@ -26281,8 +27457,10 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26281
27457
|
wordsBox.textContent = `${this.LANG.QMSCKEDITOR.WORDS}: ${stats.words} / ${this.LANG.QMSCKEDITOR.CHARACTERS}: ${stats.characters}`;
|
26282
27458
|
}
|
26283
27459
|
});
|
27460
|
+
if (this.qmsckData.isReadOnly) {
|
27461
|
+
editor.isReadOnly = true;
|
27462
|
+
}
|
26284
27463
|
this._setEditorInstanceObserver(this.editorId);
|
26285
|
-
this.setLabelTranslateForNonDropdownToolbarItems(editor);
|
26286
27464
|
}
|
26287
27465
|
/**
|
26288
27466
|
* Add template - Load template
|
@@ -26346,6 +27524,8 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26346
27524
|
data.qmsckContentFields = qmsckContentFields;
|
26347
27525
|
data.qmsckIsGetAnchorMoreContent = qmsckIsGetAnchorMoreContent;
|
26348
27526
|
}
|
27527
|
+
data.defaultTargetNewWindow = this.qmsckData.defaultTargetNewWindow;
|
27528
|
+
data.enabledInterconnected = this.qmsckData.enabledInterconnected;
|
26349
27529
|
let dialogTemplate;
|
26350
27530
|
if (!this.qmsckPlugin.simpleMode) {
|
26351
27531
|
dialogTemplate = this.dialog.open(QMSCKEditorLinkComponent, {
|
@@ -26416,6 +27596,7 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26416
27596
|
data.entityId = this.qmsckData.entityId;
|
26417
27597
|
data.editorContent = this.qmsckContentInput;
|
26418
27598
|
data.linkJavaScriptLinksAllowed = this.qmsckData.linkJavaScriptLinksAllowed;
|
27599
|
+
data.enabledInterconnected = this.qmsckData.enabledInterconnected;
|
26419
27600
|
const dialogTemplate = this.dialog.open(QMSCKEditorImageMapComponent, {
|
26420
27601
|
data,
|
26421
27602
|
disableClose: true,
|
@@ -26557,6 +27738,7 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26557
27738
|
.getUploadVideoList()
|
26558
27739
|
.pipe(takeUntil(this.ngUnsubcribe))
|
26559
27740
|
.subscribe((response) => {
|
27741
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
26560
27742
|
const videos = response || [];
|
26561
27743
|
const config = {
|
26562
27744
|
allowSelectFolder: false,
|
@@ -26564,7 +27746,7 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26564
27746
|
showCheckBox: true,
|
26565
27747
|
allowMultipleCheck: this.qmsckData.uploadVideoAllowMultipleCheck,
|
26566
27748
|
onlyCheckBoxForChild: true,
|
26567
|
-
moduleId: DataType
|
27749
|
+
moduleId: DataType.document,
|
26568
27750
|
openIcon: "folder_open",
|
26569
27751
|
openIconColor: "#1954A9",
|
26570
27752
|
closeIcon: "folder_filled",
|
@@ -26580,10 +27762,12 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26580
27762
|
data.moduleName = this.LANG.QMSCKEDITOR.SELECT_VIDEO_FROM_ARCHIVE;
|
26581
27763
|
data.moduleUploadImageName = this.LANG.QMSCKEDITOR.SELECT_VIDEO_IMAGE;
|
26582
27764
|
data.moduleUploadFileName = this.LANG.QMSCKEDITOR.ADD_A_FILE;
|
27765
|
+
data.videoData = new QMSCKEditorVideo(value.id, value.src, true, value.poster, ((_b = (_a = value.width) === null || _a === void 0 ? void 0 : _a.toString()) === null || _b === void 0 ? void 0 : _b.indexOf('%')) < 0 ? (_e = (_d = (_c = value.width) === null || _c === void 0 ? void 0 : _c.toString()) === null || _d === void 0 ? void 0 : _d.match(/\d/g)) === null || _e === void 0 ? void 0 : _e.join('') : null, (_h = (_g = (_f = value.height) === null || _f === void 0 ? void 0 : _f.toString()) === null || _g === void 0 ? void 0 : _g.match(/\d/g)) === null || _h === void 0 ? void 0 : _h.join(''));
|
27766
|
+
data.canUpdateVideoProperties = true;
|
26583
27767
|
data.treeData1 = videos.map((item) => {
|
26584
27768
|
return {
|
26585
|
-
rootId: item.rootId
|
26586
|
-
parentId: item.parentId,
|
27769
|
+
rootId: `root-${item.rootId}`,
|
27770
|
+
parentId: (item.parentId !== null && item.parentId !== "") ? `root-${item.parentId}` : item.parentId,
|
26587
27771
|
rootName: item.rootName,
|
26588
27772
|
subName: item.subName,
|
26589
27773
|
childId: item.childId,
|
@@ -26600,10 +27784,20 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26600
27784
|
data.canUploadVideo = this.qmsckData.videoUploadMode === VideoUploadMode.AllowUpload;
|
26601
27785
|
data.maxVideoThumbnailSizeKB = this.qmsckData.maxVideoThumbnailSizeKB;
|
26602
27786
|
data.entityId = this.qmsckData.entityId;
|
27787
|
+
if (value.selectedId) {
|
27788
|
+
const disabledList = [data.treeData1.find(x => x.childId === value.selectedId)] || [];
|
27789
|
+
data.disabledList = disabledList.map(x => {
|
27790
|
+
return {
|
27791
|
+
id: x.childId,
|
27792
|
+
itemName: x.childName,
|
27793
|
+
displayId: x.displayId,
|
27794
|
+
parentId: null,
|
27795
|
+
};
|
27796
|
+
});
|
27797
|
+
}
|
26603
27798
|
const dialogRef = this.dialog.open(RelatedPopupComponent, {
|
26604
|
-
|
26605
|
-
|
26606
|
-
minHeight: "620px",
|
27799
|
+
width: "800px",
|
27800
|
+
minHeight: "630px",
|
26607
27801
|
data,
|
26608
27802
|
panelClass: "qmsckeditor-browse-video-popup",
|
26609
27803
|
});
|
@@ -26614,21 +27808,16 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26614
27808
|
}
|
26615
27809
|
}, 100);
|
26616
27810
|
dialogRef.afterClosed().subscribe((result) => {
|
26617
|
-
if (result) {
|
27811
|
+
if (result && result.src) {
|
26618
27812
|
let urls = [];
|
26619
|
-
|
26620
|
-
|
27813
|
+
urls = [result.src];
|
27814
|
+
if (!result.width || result.width <= 0) {
|
27815
|
+
result.width = VideoConst.DEFAULT_VIDEO_WIDTH;
|
26621
27816
|
}
|
26622
|
-
|
26623
|
-
|
26624
|
-
result[item.id.toString()] = item.id;
|
26625
|
-
return result;
|
26626
|
-
}, {});
|
26627
|
-
urls = videos
|
26628
|
-
.filter((i) => i.childId && !!ids[i.childId.toString()])
|
26629
|
-
.map((i) => i.url);
|
27817
|
+
if (!result.height || result.height <= 0) {
|
27818
|
+
result.height = VideoConst.DEFAULT_VIDEO_HEIGHT;
|
26630
27819
|
}
|
26631
|
-
const evt = new CustomEvent(this.ckEditorEventConst.QMSCK_BROWSE_VIDEO_RESP, { detail: { urls: urls, thumbnailUrl: result.
|
27820
|
+
const evt = new CustomEvent(this.ckEditorEventConst.QMSCK_BROWSE_VIDEO_RESP, { detail: { urls: urls, thumbnailUrl: result.poster, id: result.id, width: result.width, height: result.height } });
|
26632
27821
|
window.dispatchEvent(evt);
|
26633
27822
|
}
|
26634
27823
|
});
|
@@ -26653,102 +27842,6 @@ class QMSCKEditorComponent extends QMSCKEditorBaseComponent {
|
|
26653
27842
|
});
|
26654
27843
|
this.toggleToolbarEventHandling();
|
26655
27844
|
}
|
26656
|
-
setLabelTranslateForNonDropdownToolbarItems(editor) {
|
26657
|
-
var _a, _b;
|
26658
|
-
let allItemOnToolbar = (_b = (_a = editor.ui.view.toolbar) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b._items;
|
26659
|
-
allItemOnToolbar.forEach((el) => {
|
26660
|
-
if (el.label) {
|
26661
|
-
el.label = this.translateCKEditor(el.label);
|
26662
|
-
return;
|
26663
|
-
}
|
26664
|
-
if (el.buttonView && el.buttonView.label) {
|
26665
|
-
el.buttonView.label = this.translateCKEditor(el.buttonView.label);
|
26666
|
-
return;
|
26667
|
-
}
|
26668
|
-
});
|
26669
|
-
}
|
26670
|
-
translateCKEditor(label) {
|
26671
|
-
switch (label.toLowerCase()) {
|
26672
|
-
case ('font size'):
|
26673
|
-
return this.LANG.QMSCKEDITOR.FONT_SIZE;
|
26674
|
-
case ('font family'):
|
26675
|
-
return this.LANG.QMSCKEDITOR.FONT_FAMILY;
|
26676
|
-
case ('font color'):
|
26677
|
-
return this.LANG.QMSCKEDITOR.FONT_COLOR;
|
26678
|
-
case ('font background color'):
|
26679
|
-
return this.LANG.QMSCKEDITOR.FONT_BACKGROUND_COLOR;
|
26680
|
-
case ('bold'):
|
26681
|
-
return this.LANG.QMSCKEDITOR.BOLD;
|
26682
|
-
case ('italic'):
|
26683
|
-
return this.LANG.QMSCKEDITOR.ITALIC;
|
26684
|
-
case ('underline'):
|
26685
|
-
return this.LANG.QMSCKEDITOR.UNDERLINE;
|
26686
|
-
case ('strikethrough'):
|
26687
|
-
return this.LANG.QMSCKEDITOR.STRIKETHROUGH;
|
26688
|
-
case ('horizontal line'):
|
26689
|
-
return this.LANG.QMSCKEDITOR.HORIZONTAL_LINE;
|
26690
|
-
case ('page break'):
|
26691
|
-
return this.LANG.QMSCKEDITOR.PAGE_BREAK;
|
26692
|
-
case ('text alignment'):
|
26693
|
-
return this.LANG.QMSCKEDITOR.TEXT_ALIGNMENT;
|
26694
|
-
case ('bulleted list'):
|
26695
|
-
return this.LANG.QMSCKEDITOR.BULLETED_LIST;
|
26696
|
-
case ('numbered list'):
|
26697
|
-
return this.LANG.QMSCKEDITOR.NUMBERED_LIST;
|
26698
|
-
case ('decrease indent'):
|
26699
|
-
return this.LANG.QMSCKEDITOR.DECREASE_INDENT;
|
26700
|
-
case ('increase indent'):
|
26701
|
-
return this.LANG.QMSCKEDITOR.INCREASE_INDENT;
|
26702
|
-
case ('subscript'):
|
26703
|
-
return this.LANG.QMSCKEDITOR.SUBSCRIPT;
|
26704
|
-
case ('superscript'):
|
26705
|
-
return this.LANG.QMSCKEDITOR.SUPERSCRIPT;
|
26706
|
-
case ('undo'):
|
26707
|
-
return this.LANG.QMSCKEDITOR.UNDO;
|
26708
|
-
case ('redo'):
|
26709
|
-
return this.LANG.QMSCKEDITOR.REDO;
|
26710
|
-
case ('special characters'):
|
26711
|
-
return this.LANG.QMSCKEDITOR.SPECIAL_CHARACTERS;
|
26712
|
-
case ('block quote'):
|
26713
|
-
return this.LANG.QMSCKEDITOR.BLOCKQUOTE;
|
26714
|
-
case ('insert image'):
|
26715
|
-
return this.LANG.QMSCKEDITOR.INSERT_IMAGE;
|
26716
|
-
case ('insert media'):
|
26717
|
-
return this.LANG.QMSCKEDITOR.INSERT_MEDIA;
|
26718
|
-
case ('browse video'):
|
26719
|
-
return this.LANG.QMSCKEDITOR.BROWSE_VIDEO;
|
26720
|
-
case ('insert table'):
|
26721
|
-
return this.LANG.QMSCKEDITOR.INSERT_TABLE;
|
26722
|
-
case ('anchor'):
|
26723
|
-
return this.LANG.QMSCKEDITOR.ANCHOR;
|
26724
|
-
case ('tooltip'):
|
26725
|
-
return this.LANG.QMSCKEDITOR.TOOLTIP;
|
26726
|
-
case ('timestamp'):
|
26727
|
-
return this.LANG.QMSCKEDITOR.TIMESTAMP;
|
26728
|
-
case ('add template'):
|
26729
|
-
return this.LANG.QMSCKEDITOR.ADD_TEMPLATE;
|
26730
|
-
case ('templates'):
|
26731
|
-
return this.LANG.QMSCKEDITOR.TEMPLATES;
|
26732
|
-
case ('remove format'):
|
26733
|
-
return this.LANG.QMSCKEDITOR.REMOVE_FORMAT;
|
26734
|
-
case ('link'):
|
26735
|
-
return this.LANG.QMSCKEDITOR.LINK;
|
26736
|
-
case ('flowchart'):
|
26737
|
-
return this.LANG.QMSCKEDITOR.FLOWCHART;
|
26738
|
-
case ('business process model and notation'):
|
26739
|
-
return this.LANG.QMSCKEDITOR.BPMN;
|
26740
|
-
case ('about ckeditor'):
|
26741
|
-
return this.LANG.QMSCKEDITOR.ABOUT_CKEDITOR;
|
26742
|
-
case ('create table of contents'):
|
26743
|
-
return this.LANG.QMSCKEDITOR.CREATE_TABLE_OF_CONTENTS;
|
26744
|
-
case ('source'):
|
26745
|
-
return this.LANG.QMSCKEDITOR.SOURCE;
|
26746
|
-
case ('toggle toolbar'):
|
26747
|
-
return this.LANG.QMSCKEDITOR.TOGGLE_TOOLBAR;
|
26748
|
-
default:
|
26749
|
-
return label;
|
26750
|
-
}
|
26751
|
-
}
|
26752
27845
|
}
|
26753
27846
|
QMSCKEditorComponent.decorators = [
|
26754
27847
|
{ type: Component, args: [{
|
@@ -28695,20 +29788,6 @@ SelectOneNextDialog.ctorParameters = () => [
|
|
28695
29788
|
{ type: SelectOneNextData, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
28696
29789
|
];
|
28697
29790
|
|
28698
|
-
var DataType;
|
28699
|
-
(function (DataType) {
|
28700
|
-
DataType[DataType["process"] = 2] = "process";
|
28701
|
-
DataType[DataType["document"] = 1] = "document";
|
28702
|
-
DataType[DataType["area"] = 3] = "area";
|
28703
|
-
DataType[DataType["folder"] = 4] = "folder";
|
28704
|
-
DataType[DataType["deviation"] = 5] = "deviation";
|
28705
|
-
DataType[DataType["checklist"] = 6] = "checklist";
|
28706
|
-
DataType[DataType["risk"] = 7] = "risk";
|
28707
|
-
DataType[DataType["deviationType"] = 8] = "deviationType";
|
28708
|
-
DataType[DataType["checklistCategory"] = 9] = "checklistCategory";
|
28709
|
-
DataType[DataType["riskFolder"] = 10] = "riskFolder";
|
28710
|
-
})(DataType || (DataType = {}));
|
28711
|
-
|
28712
29791
|
var DocumentNodeType;
|
28713
29792
|
(function (DocumentNodeType) {
|
28714
29793
|
DocumentNodeType[DocumentNodeType["Document"] = 1] = "Document";
|
@@ -30430,25 +31509,26 @@ class SelectDepartmentTreeComponent {
|
|
30430
31509
|
const treeNodes = this.treeDepartmentService.convertToTreeData(this.config.selectedList.map(x => (Object.assign(Object.assign({}, x), { parentId: x.groupId }))));
|
30431
31510
|
this.execWithoutEmitNodeChangeEvent(() => {
|
30432
31511
|
const selectedItems = [];
|
30433
|
-
const reMapTreeNode = (item) => {
|
31512
|
+
const reMapTreeNode = (item, clearGroupId = false) => {
|
30434
31513
|
var _a;
|
30435
31514
|
const node = this.treeControl.dataNodes.find(x => x.id == item.id);
|
30436
31515
|
const nestedNode = this.convertToNestedNode(node);
|
30437
31516
|
node.groupId = item.groupId;
|
30438
31517
|
node.isGroup = item.isGroup;
|
30439
31518
|
this.checkListSelection.select(node);
|
30440
|
-
return Object.assign(Object.assign({}, nestedNode), { groupId: item.groupId, isGroup: item.isGroup, childCount: (_a = nestedNode.childCount) !== null && _a !== void 0 ? _a : this.getListChildrenOfNode(node).length, children: [] });
|
31519
|
+
return Object.assign(Object.assign({}, nestedNode), { groupId: clearGroupId ? null : item.groupId, isGroup: item.isGroup, childCount: (_a = nestedNode.childCount) !== null && _a !== void 0 ? _a : this.getListChildrenOfNode(node).length, children: [] });
|
30441
31520
|
};
|
30442
31521
|
treeNodes.forEach(item => {
|
30443
31522
|
const node = this.treeControl.dataNodes.find(x => x.id == item.id);
|
30444
31523
|
if (!node)
|
30445
31524
|
return;
|
30446
31525
|
const nestedNode = this.convertToNestedNode(node);
|
30447
|
-
selectedItems.push(Object.assign(Object.assign({}, reMapTreeNode(item)), { children: item.children.map(x => reMapTreeNode(x)) }));
|
31526
|
+
selectedItems.push(Object.assign(Object.assign({}, reMapTreeNode(item, true)), { children: item.children.map(x => reMapTreeNode(x)) }));
|
30448
31527
|
});
|
30449
31528
|
this.resultSelected.push(...selectedItems);
|
30450
31529
|
});
|
30451
31530
|
this.onValueChangeEvent.emit(this.resultSelected);
|
31531
|
+
this._onSelectionNodeChangeEvent('added', this.resultSelected);
|
30452
31532
|
this.cdRef.detectChanges();
|
30453
31533
|
}
|
30454
31534
|
_initListSelected() {
|
@@ -32024,6 +33104,9 @@ class QMSSelectAccessDialogComponent {
|
|
32024
33104
|
return userGroups.data || [];
|
32025
33105
|
}
|
32026
33106
|
;
|
33107
|
+
ngAfterContentChecked() {
|
33108
|
+
this.cdRef.detectChanges();
|
33109
|
+
}
|
32027
33110
|
ngAfterContentInit() {
|
32028
33111
|
this.cdRef.detectChanges();
|
32029
33112
|
}
|
@@ -32081,8 +33164,23 @@ class QMSSelectAccessDialogComponent {
|
|
32081
33164
|
this.resultAccess = _.cloneDeep(Object.assign(Object.assign({}, this.dialogData.data.selectedData), { departments: [] }));
|
32082
33165
|
// init group selected department
|
32083
33166
|
this._departmentSelected = _.cloneDeep(this.dialogData.data.selectedData.departments);
|
32084
|
-
const groups =
|
32085
|
-
const singleItem =
|
33167
|
+
const groups = [];
|
33168
|
+
const singleItem = [];
|
33169
|
+
this._departmentSelected.forEach(item => {
|
33170
|
+
if (item.isGroup) {
|
33171
|
+
groups.push(item);
|
33172
|
+
return;
|
33173
|
+
}
|
33174
|
+
if (!item.groupId) {
|
33175
|
+
singleItem.push(item);
|
33176
|
+
return;
|
33177
|
+
}
|
33178
|
+
if (!this._departmentSelected.some(x => x.id == item.groupId)) {
|
33179
|
+
item.groupId = null;
|
33180
|
+
singleItem.push(item);
|
33181
|
+
return;
|
33182
|
+
}
|
33183
|
+
});
|
32086
33184
|
groups.forEach(group => {
|
32087
33185
|
const child = this._departmentSelected.filter(item => item.groupId == group.id);
|
32088
33186
|
group.children = child;
|
@@ -32372,9 +33470,11 @@ class QMSSelectAccessDialogComponent {
|
|
32372
33470
|
this.resultAccess.departments.splice(index, 1);
|
32373
33471
|
});
|
32374
33472
|
});
|
33473
|
+
this.cdRef.detectChanges();
|
32375
33474
|
}
|
32376
33475
|
this.resultAccess.departments.forEach(item => {
|
32377
|
-
|
33476
|
+
if (!!item.children)
|
33477
|
+
item.children = item.children.filter((x, index) => index === item.children.findIndex(_x => x.id === _x.id));
|
32378
33478
|
});
|
32379
33479
|
this._departmentSelected = _.cloneDeep(this.resultAccess.departments);
|
32380
33480
|
this.cdRef.detectChanges();
|
@@ -32526,5 +33626,5 @@ class FilterPersonModel {
|
|
32526
33626
|
* Generated bundle index. Do not edit.
|
32527
33627
|
*/
|
32528
33628
|
|
32529
|
-
export { AnimationTreeDepartment, AutocompleteOffDirective, BREADCRUMB_DROPDOWN_ICON, BUTTON_TOGGLE_DEFAULT_OPTIONS, BUTTON_TOGGLE_GROUP, BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, BannerType, BpmnService, BreadcrumbNode, BreadcrumbType, ButtonToggleChange, CHECKLIST_ICON, CKEditorEventConst, CKEditorModule, CdkDetailRowDirective, ConfirmDialog, DEPARTMENT_FOLDER_ICON, DEPARTMENT_FOLDER_OUTLINED_ICON, DEVIATION_ICON, DOCUMENT_DEPARTMENT_ICON, DOCUMENT_ENTERPRISE_ICON, DOCUMENT_ICON, DOCUMENT_LOCAL_ICON, DOCUMENT_REGIONAL_ICON, DataType
|
33629
|
+
export { AnimationTreeDepartment, AutocompleteOffDirective, BREADCRUMB_DROPDOWN_ICON, BUTTON_TOGGLE_DEFAULT_OPTIONS, BUTTON_TOGGLE_GROUP, BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, BannerType, BpmnService, BreadcrumbNode, BreadcrumbType, ButtonToggleChange, CHECKLIST_ICON, CKEditorEventConst, CKEditorModule, CdkDetailRowDirective, ConfirmDialog, DEPARTMENT_FOLDER_ICON, DEPARTMENT_FOLDER_OUTLINED_ICON, DEVIATION_ICON, DOCUMENT_DEPARTMENT_ICON, DOCUMENT_ENTERPRISE_ICON, DOCUMENT_ICON, DOCUMENT_LOCAL_ICON, DOCUMENT_REGIONAL_ICON, DataType, DateFormatPipe, DepartmentLocationBreadCrumb, DepartmentSearchResultModel, DocumentNodeType$1 as DocumentNodeType, ENTERPRISE_FOLDER_ICON, ENTERPRISE_FOLDER_OUTLINED_ICON, EllipsifyDirective, FileErrorType, FileType, FilterPersonModel, FlatNodeNavDrawer, FlowChartConst, FlowchartViewMode, ISelectOneItem, InformationCoverItem, KEYBOARD_DOWN_ICON, KEYBOARD_UP_ICON, LOCAL_FOLDER_ICON, LOCAL_FOLDER_OUTLINED_ICON, LinkAnchor, LinkType, MarginDirective, MfeUtil, ModeDepartmentTreeeViewEnum, ModuleType$1 as ModuleType, NORMAL_FOLDER_ICON, NORMAL_FOLDER_OUTLINED_ICON, NavigatorElementView, NavigatorLinkView, NewTreeComponent, NewTreeModel, OptionSelectAccessEnum, OptionSelectAccessModel, PROCESS_AREA_ICON, PROCESS_AREA_OUTLINED_ICON, PROCESS_ICON, PROCESS_INTERCONNECTED_ICON, PaginationSize, PopupData, ProtocolType, ProtocolTypeName, QMSAccessItem, QMSAccessPagingChangeModel, QMSAccessPagingModel, QMSAnchor, QMSAppBar, QMSAppIconModule, QMSAttachmentListDirective, QMSBasicTreeComponent, QMSBreadcrumb, QMSBreadcrumbDirectionIconDirective, QMSBreadcrumbItemDirective, QMSBreadcrumbModule, QMSButton, QMSButtonIcon, QMSButtonModule, QMSButtonToggle, QMSButtonToggleGroup, QMSCKEditorBaseComponent, QMSCKEditorBaseService, QMSCKEditorBpmn, QMSCKEditorBpmnApiService, QMSCKEditorBpmnComponent, QMSCKEditorBpmnTemplate, QMSCKEditorComponent, QMSCKEditorConfirmComponent, QMSCKEditorData, QMSCKEditorDialogData, QMSCKEditorDocumentType, QMSCKEditorFlowchart, QMSCKEditorFlowchartService, QMSCKEditorFullscreenComponent, QMSCKEditorGlobalService, QMSCKEditorInjector, QMSCKEditorLinkAnchorDocument, QMSCKEditorLinkComponent, QMSCKEditorLinkService, QMSCKEditorLoadTemplateComponent, QMSCKEditorModule, QMSCKEditorPlugin, QMSCKEditorRelatedComponent, QMSCKEditorRelation, QMSCKEditorSaveAsTemplate, QMSCKEditorTemplate, QMSCKEditorTemplateService, QMSCKEditorToastService, QMSCKEditorTreeComponent, QMSCKEdtiorInputData, QMSChipBodyDirective, QMSChipInputChipListDirective, QMSChipInputDirective, QMSChipInputSelectDropDownDirective, QMSChipInputSelectFieldDirective, QMSChipInputSelectTriggerDirective, QMSCollapseGroupDirective, QMSComment, QMSConfirmDialog, QMSContentChangesDirective, QMSDepartmentPagingModel, QMSDialogConfig, QMSDialogContainer, QMSDialogContainerV2, QMSDialogContent, QMSDialogFooter, QMSDialogHeader, QMSDrawerContentDirective, QMSDrawerDirective, QMSDrawerHeaderActionDirective, QMSDrawerHeaderDirective, QMSDropdownMenuItem, QMSEditFileNameDialog, QMSEditFileNameDialogModule, QMSFileAttachment, QMSFileUploadDirective, QMSFileUploadDisplayDirective, QMSFileUploadMultipleDirective, QMSFileUploadMultipleDisplayDirective, QMSFileUploadMultipleSelectorDirective, QMSFileUploadSelectorDirective, QMSFlatNodeTree, QMSFormDialog, QMSFormFieldDatePickerDirective, QMSFormFieldDirective, QMSFormFieldTextareaDirective, QMSGroupOptionDirective, QMSIconRegistryService, QMSInputChipDirective, QMSInputClearDirective, QMSList, QMSListExpansion, QMSListExpansionHeader, QMSListHeader, QMSListItem, QMSListLeadingIcon, QMSListLine, QMSListModule, QMSMultiIconDirective, QMSNavDrawerComponent, QMSNavDrawerModule, QMSNavigationDrawerComponent, QMSNavigationDrawerModule, QMSNewTreeModule, QMSPaginatorComponent, QMSProcessDocumentItem, QMSRangeSliderDirective, QMSRangeSliderLockUpDirective, QMSRangeSliderModule, QMSRelatedGlobalService, QMSRelatedModule, QMSRichText, QMSRichTextModule, QMSRowDetailDirective, QMSScrolableAttachmentListDirective, QMSScrollbarDirective, QMSSearchFieldDirective, QMSSelectAccessData, QMSSelectAccessDialog, QMSSelectAccessDialogComponent, QMSSelectAccessDialogModule, QMSSelectAccessGlobalService, QMSSelectAccessResult, QMSSelectDepartmentGlobalService, QMSSelectDepartmentModule, QMSSelectDepartmentTreeConfig, QMSSelectDepartmentTreeGlobalService, QMSSelectDepartmentTreeModule, QMSSelectIncludeChildrenGlobalService, QMSSelectIncludeChildrenModule, QMSSelectOneGlobalService, QMSSelectOneModule, QMSSelectProcessDocumentGlobalService, QMSSelectProcessDocumentModule, QMSSideSheetModule, QMSSnackbarConfig, QMSSuffixDirective, QMSSuffixFieldDirective, QMSTabGroupAdvancedDirective, QMSTabGroupDirective, QMSTabLabelDirective, QMSTabModule, QMSTableAction, QMSTableActionBlock, QMSTableChildrenDirective, QMSTableDirective, QMSTableModule, QMSTableRowDirective, QMSTextBlockDirective, QMSTextBlockLine, QMSTextTruncateDirective, QMSThemingLibraryService, QMSToolTipComponent, QMSToolTipRendererDirective, QMSTooltipImageDirective, QMSTooltipModule, QMSTreeConfig, QMSTreeGlobalService, QMSTreeModel, QMSTreeModule, QMSUploadFileErrorDialog, QMSUploadFileErrorDialogModule, QMSUploadingFileGuard, QMS_LANGUAGES, QMS_THEMES, QMS_THEME_DEFAULT, QmsAngularComponent, QmsAngularModule, QmsAngularService, QmsAppBarComponent, QmsAppBarModule, QmsBadgesComponent, QmsBadgesModule, QmsBannerButtonType, QmsBannerComponent, QmsBannerConfirmButton, QmsBannerConfirmButtonClick, QmsBannerConfirmComponent, QmsBannerConfirmModule, QmsBannerContent, QmsBannerLoadingComponent, QmsBannerLoadingModule, QmsBannerModule, QmsCkeditorLinkSimpleComponent, QmsPaginatorModule, QmsReportContentPortraitComponent, QmsReportCoverPortraitComponent, QmsReportModule, QmsStatusDropdownComponent, QmsStatusDropdownModule, QmsStatusDropdownOption, QmsStatusDropdownType, QmsStepperComponent, QmsStepperModule, REGIONAL_FOLDER_ICON, REGIONAL_FOLDER_OUTLINED_ICON, RISK_ICON, RelatedConst, RelatedContentComponent, RelatedItemType, RelatedListComponent, RelatedPopupComponent, Result, RiskAnalysis, RiskAnalysisComponent, RiskDanger, RiskListComponent, RiskResult, RiskResultComponent, SaveTemplateComponent, ScrollToSelectedDirective, SelectAccessAnimationTrigger, SelectConst, SelectDepartmentComponent, SelectDepartmentPopupData, SelectDepartmentTreeComponent, SelectDialog, SelectIncludeChildrenPopUpComponent, SelectOneDialog, SelectOneNextData, SelectOneNextDialog, SelectOnePopupData, SelectOption, SelectOptionTypes, SelectPopupData, SelectProcessDocumentPopupComponent, SelectProcessDocumentPopupData, SelectedOption, SelectedProcessDocumentItem, SharedModule, ShowHideSearchResultConst, SideNav, SideNavItem, SidenavComponent, TargetType, TargetTypeName, TranslateLibraryService, TreeComponent, TreeConfig, TreeFlatNode, TreeModel, TreeModelNavDrawer, TreeNode$1 as TreeNode, UploadErrorData, app, basic, en, erd, fsa, mixinColor, no, notExceedSize, org, pn, requiredFileType, standard, uml, ɵ2, SharedMaterialModule as ɵa, TreeComponent as ɵb, QMSCKEditorUploadService as ɵc, QMSTreeModule as ɵd, QMSBasicTreeComponent as ɵe, QMSCKEditorTreeService as ɵf, QMSCKEditorTemplateComponent as ɵg, QMSCKEditorCommonService as ɵh, QMSSelectProcessDocumentGlobalService as ɵi, LinkAttachmentComponent as ɵj, QMSCKEditorTooltipComponent as ɵk, QMSCKEditorTooltip as ɵl, QMSCKEditorImageMapComponent as ɵm, QMSCKEditorImageMap as ɵn, QMSCKEditorBpmnData as ɵo, QMSCKEditorAboutComponent as ɵp, QMSCKEditorFlowchartComponent as ɵq };
|
32530
33630
|
//# sourceMappingURL=qms-angular.js.map
|