@colijnit/sharedcomponents 1.0.57 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +3555 -6
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +17 -0
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +18 -1
  6. package/esm2015/lib/businessobject/build-images-and-documentation-result.js +2 -0
  7. package/esm2015/lib/businessobject/co-document-right.bo.js +3 -0
  8. package/esm2015/lib/businessobject/drag-drop-container-element.js +2 -0
  9. package/esm2015/lib/businessobject/drag-drop-container.js +7 -0
  10. package/esm2015/lib/components/activity-list/activity-list.component.js +130 -0
  11. package/esm2015/lib/components/activity-list/activity-list.module.js +24 -0
  12. package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.component.js +47 -0
  13. package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.module.js +20 -0
  14. package/esm2015/lib/components/file-upload/file-upload.component.js +189 -0
  15. package/esm2015/lib/components/file-upload/file-upload.module.js +25 -0
  16. package/esm2015/lib/components/file-upload-popup/file-upload-popup.component.js +397 -0
  17. package/esm2015/lib/components/file-upload-popup/file-upload-popup.module.js +30 -0
  18. package/esm2015/lib/components/files-upload/components/base-file-upload.component.js +469 -0
  19. package/esm2015/lib/components/files-upload/components/drag-drop-container.component.js +115 -0
  20. package/esm2015/lib/components/files-upload/files-upload.component.js +131 -0
  21. package/esm2015/lib/components/files-upload/files-upload.module.js +47 -0
  22. package/esm2015/lib/components/image-display/image-display.component.js +36 -0
  23. package/esm2015/lib/components/image-display/image-display.module.js +23 -0
  24. package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.component.js +89 -0
  25. package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.module.js +21 -0
  26. package/esm2015/lib/components/tile-renderer/tile-render.component.js +80 -0
  27. package/esm2015/lib/components/tile-renderer/tile-render.module.js +26 -0
  28. package/esm2015/lib/decorator/input-boolean.decorator.js +34 -0
  29. package/esm2015/lib/enum/document-email-report.enum.js +18 -0
  30. package/esm2015/lib/enum/domain-multiple-name.enum.js +13 -0
  31. package/esm2015/lib/enum/file-type.js +14 -0
  32. package/esm2015/lib/enum/files-upload-config-objects.js +3 -0
  33. package/esm2015/lib/enum/icon.enum.js +7 -1
  34. package/esm2015/lib/enum/internal-param.enum.js +38 -0
  35. package/esm2015/lib/enum/read-write-access-config-names.enum.js +2 -0
  36. package/esm2015/lib/enum/table-name.enum.js +86 -0
  37. package/esm2015/lib/enum/tag-category.enum.js +22 -0
  38. package/esm2015/lib/enum/tags-component-config-names.js +2 -0
  39. package/esm2015/lib/enum/tile-size-type.js +7 -0
  40. package/esm2015/lib/event/co-drag-event.js +2 -0
  41. package/esm2015/lib/event/co-drop-event.js +2 -0
  42. package/esm2015/lib/interface/key-value-pair.js +2 -0
  43. package/esm2015/lib/interface/operation-callback-simple-function.js +4 -0
  44. package/esm2015/lib/model/icon-svg.js +7 -1
  45. package/esm2015/lib/model/tag-tree-item.bo.js +16 -0
  46. package/esm2015/lib/model/tree-object.js +15 -0
  47. package/esm2015/lib/pipe/file-type-image.pipe.js +51 -0
  48. package/esm2015/lib/pipe/master-pipes.js +4 -2
  49. package/esm2015/lib/service/drag-drop.service.js +365 -0
  50. package/esm2015/lib/service/shared-connector.service.js +10 -1
  51. package/esm2015/lib/service/shared.service.js +2 -2
  52. package/esm2015/lib/utils/array-utils.js +202 -0
  53. package/esm2015/lib/utils/check-precision-and-scale-result.js +2 -0
  54. package/esm2015/lib/utils/check-within-stepped-bounds-result.js +2 -0
  55. package/esm2015/lib/utils/co-document-shared-field-logic.js +50 -0
  56. package/esm2015/lib/utils/enum-utils.js +128 -0
  57. package/esm2015/lib/utils/is-nill.function.js +5 -0
  58. package/esm2015/lib/utils/number-utils.js +390 -0
  59. package/esm2015/lib/utils/object-utils.js +278 -0
  60. package/esm2015/lib/utils/ref-code-utils.js +49 -0
  61. package/esm2015/lib/utils/string-utils.js +30 -1
  62. package/esm2015/public-api.js +5 -1
  63. package/fesm2015/colijnit-sharedcomponents.js +3528 -6
  64. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  65. package/lib/businessobject/build-images-and-documentation-result.d.ts +5 -0
  66. package/lib/businessobject/co-document-right.bo.d.ts +6 -0
  67. package/lib/businessobject/drag-drop-container-element.d.ts +6 -0
  68. package/lib/businessobject/drag-drop-container.d.ts +6 -0
  69. package/lib/components/access/read-write-access.scss +25 -0
  70. package/lib/components/access/style/_layout.scss +23 -0
  71. package/lib/components/access/style/_material-definition.scss +12 -0
  72. package/lib/components/access/style/_theme.scss +4 -0
  73. package/lib/components/access/style/material.scss +4 -0
  74. package/lib/components/activity-list/activity-list.component.d.ts +33 -0
  75. package/lib/components/activity-list/activity-list.module.d.ts +2 -0
  76. package/lib/components/activity-list/style/_layout.scss +68 -0
  77. package/lib/components/activity-list/style/_material-definition.scss +0 -0
  78. package/lib/components/activity-list/style/_theme.scss +4 -0
  79. package/lib/components/activity-list/style/material.scss +4 -0
  80. package/lib/components/app-file-dropzone/app-file-dropzone.component.d.ts +14 -0
  81. package/lib/components/app-file-dropzone/app-file-dropzone.module.d.ts +2 -0
  82. package/lib/components/app-file-dropzone/style/_layout.scss +61 -0
  83. package/lib/components/app-file-dropzone/style/_material-definition.scss +0 -0
  84. package/lib/components/app-file-dropzone/style/_theme.scss +4 -0
  85. package/lib/components/app-file-dropzone/style/material.scss +4 -0
  86. package/lib/components/file-upload/file-upload.component.d.ts +42 -0
  87. package/lib/components/file-upload/file-upload.module.d.ts +2 -0
  88. package/lib/components/file-upload/style/_layout.scss +59 -0
  89. package/lib/components/file-upload/style/_material-definition.scss +2 -0
  90. package/lib/components/file-upload/style/_theme.scss +4 -0
  91. package/lib/components/file-upload/style/material.scss +4 -0
  92. package/lib/components/file-upload-popup/file-upload-popup.component.d.ts +75 -0
  93. package/lib/components/file-upload-popup/file-upload-popup.module.d.ts +2 -0
  94. package/lib/components/file-upload-popup/style/_layout.scss +48 -0
  95. package/lib/components/file-upload-popup/style/_material-definition.scss +2 -0
  96. package/lib/components/file-upload-popup/style/_theme.scss +5 -0
  97. package/lib/components/file-upload-popup/style/material.scss +4 -0
  98. package/lib/components/files-upload/components/base-file-upload.component.d.ts +98 -0
  99. package/lib/components/files-upload/components/drag-drop-container.component.d.ts +34 -0
  100. package/lib/components/files-upload/files-upload.component.d.ts +32 -0
  101. package/lib/components/files-upload/files-upload.module.d.ts +2 -0
  102. package/lib/components/files-upload/style/_layout.scss +49 -0
  103. package/lib/components/files-upload/style/_material-definition.scss +0 -0
  104. package/lib/components/files-upload/style/_theme.scss +5 -0
  105. package/lib/components/files-upload/style/material.scss +4 -0
  106. package/lib/components/image-display/image-display.component.d.ts +14 -0
  107. package/lib/components/image-display/image-display.module.d.ts +2 -0
  108. package/lib/components/image-display/style/_layout.scss +56 -0
  109. package/lib/components/image-display/style/_material-definition.scss +4 -0
  110. package/lib/components/image-display/style/_theme.scss +6 -0
  111. package/lib/components/image-display/style/material.scss +3 -0
  112. package/lib/components/multi-property-toggler/multiple-property-toggler.component.d.ts +27 -0
  113. package/lib/components/multi-property-toggler/multiple-property-toggler.module.d.ts +2 -0
  114. package/lib/components/multi-property-toggler/style/_layout.scss +24 -0
  115. package/lib/components/multi-property-toggler/style/_material-definition.scss +0 -0
  116. package/lib/components/multi-property-toggler/style/_theme.scss +4 -0
  117. package/lib/components/multi-property-toggler/style/material.scss +4 -0
  118. package/lib/components/tile-renderer/style/_layout.scss +90 -0
  119. package/lib/components/tile-renderer/style/_material-definition.scss +0 -0
  120. package/lib/components/tile-renderer/style/_theme.scss +4 -0
  121. package/lib/components/tile-renderer/style/material.scss +4 -0
  122. package/lib/components/tile-renderer/tile-render.component.d.ts +31 -0
  123. package/lib/components/tile-renderer/tile-render.module.d.ts +2 -0
  124. package/lib/decorator/input-boolean.decorator.d.ts +8 -0
  125. package/lib/enum/document-email-report.enum.d.ts +15 -0
  126. package/lib/enum/domain-multiple-name.enum.d.ts +10 -0
  127. package/lib/enum/file-type.d.ts +7 -0
  128. package/lib/enum/files-upload-config-objects.d.ts +22 -0
  129. package/lib/enum/icon.enum.d.ts +6 -0
  130. package/lib/enum/internal-param.enum.d.ts +34 -0
  131. package/lib/enum/read-write-access-config-names.enum.d.ts +4 -0
  132. package/lib/enum/table-name.enum.d.ts +84 -0
  133. package/lib/enum/tag-category.enum.d.ts +19 -0
  134. package/lib/enum/tags-component-config-names.d.ts +4 -0
  135. package/lib/enum/tile-size-type.d.ts +4 -0
  136. package/lib/event/co-drag-event.d.ts +5 -0
  137. package/lib/event/co-drop-event.d.ts +8 -0
  138. package/lib/interface/key-value-pair.d.ts +4 -0
  139. package/lib/interface/operation-callback-simple-function.d.ts +4 -0
  140. package/lib/model/tag-tree-item.bo.d.ts +18 -0
  141. package/lib/model/tree-object.d.ts +8 -0
  142. package/lib/pipe/file-type-image.pipe.d.ts +12 -0
  143. package/lib/service/drag-drop.service.d.ts +86 -0
  144. package/lib/service/shared-connector.service.d.ts +2 -0
  145. package/lib/style/_variables.scss +1 -1
  146. package/lib/utils/array-utils.d.ts +63 -0
  147. package/lib/utils/check-precision-and-scale-result.d.ts +4 -0
  148. package/lib/utils/check-within-stepped-bounds-result.d.ts +8 -0
  149. package/lib/utils/co-document-shared-field-logic.d.ts +7 -0
  150. package/lib/utils/enum-utils.d.ts +31 -0
  151. package/lib/utils/is-nill.function.d.ts +1 -0
  152. package/lib/utils/number-utils.d.ts +125 -0
  153. package/lib/utils/object-utils.d.ts +40 -0
  154. package/lib/utils/ref-code-utils.d.ts +10 -0
  155. package/lib/utils/string-utils.d.ts +16 -0
  156. package/package.json +1 -1
  157. package/public-api.d.ts +4 -0
@@ -0,0 +1,5 @@
1
+ import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
2
+ export interface BuildImagesAndDocumentationResult {
3
+ images: CoDocument[];
4
+ documentation: CoDocument[];
5
+ }
@@ -0,0 +1,6 @@
1
+ import { ObjectRightType } from "@colijnit/sharedapi/build/enum/object-right-type.enum";
2
+ export declare class CoDocumentRight {
3
+ userGroupId: number;
4
+ documentId: number;
5
+ rightLevel: ObjectRightType;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { DragDropContainer } from "./drag-drop-container";
2
+ export interface DragDropContainerElement {
3
+ container: DragDropContainer;
4
+ element: HTMLElement;
5
+ elementIdx: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { CoOrientation } from "@colijnit/corecomponents_v12";
2
+ export declare class DragDropContainer {
3
+ element: HTMLElement;
4
+ direction: CoOrientation;
5
+ constructor(element: HTMLElement, direction: CoOrientation);
6
+ }
@@ -0,0 +1,25 @@
1
+ :host {
2
+
3
+ }
4
+
5
+ h4 {
6
+ margin: 10px 0;
7
+ }
8
+
9
+ .horizontal-layout-column {
10
+ display: flex;
11
+ padding-top: 10px;
12
+ padding-bottom: 10px;
13
+
14
+ input-lov-multi-select {
15
+ width: 50%;
16
+
17
+ &:first-child {
18
+ padding-right: 10px;
19
+ }
20
+
21
+ &:last-child {
22
+ padding-left: 10px;
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,23 @@
1
+ @include export-module('co-read-write-access-layout') {
2
+ h4 {
3
+ margin: 10px 0;
4
+ }
5
+
6
+ .horizontal-layout-column {
7
+ display: flex;
8
+ padding-top: 10px;
9
+ padding-bottom: 10px;
10
+
11
+ input-lov-multi-select {
12
+ width: 50%;
13
+
14
+ &:first-child {
15
+ padding-right: 10px;
16
+ }
17
+
18
+ &:last-child {
19
+ padding-left: 10px;
20
+ }
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,12 @@
1
+ $sc-signature-button-sign-left: inherit !default;
2
+ $sc-signature-button-sign-top: inherit !default;
3
+ $sc-signature-button-sign-right: 25px !default;
4
+ $sc-signature-button-sign-bottom: 75px !default;
5
+ $sc-signature-button-sign-background-color: $sc-color-action !default;
6
+ $sc-signature-button-sign-color: $sc-color-light !default;
7
+ $sc-signature-button-cancel-left: inherit !default;
8
+ $sc-signature-button-cancel-top: inherit !default;
9
+ $sc-signature-button-cancel-right: 25px !default;
10
+ $sc-signature-button-cancel-bottom: 25px !default;
11
+ $sc-signature-button-cancel-background-color: $sc-color-action !default;
12
+ $sc-signature-button-cancel-color: $sc-color-light !default;
@@ -0,0 +1,4 @@
1
+ @include export-module('co-read-write-access-theme') {
2
+ .co-read-write-access {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -0,0 +1,33 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Icon } from "../../enum/icon.enum";
3
+ import { RelationKind } from "@colijnit/articleapi/build/enum/relation-kind.enum";
4
+ import { Activity } from "@colijnit/mainapi/build/model/activity.bo";
5
+ import { ActivityType } from "@colijnit/mainapi/build/enum/activity-type";
6
+ import { IconCacheService } from "../../service/icon-cache.service";
7
+ import { DictionaryService } from "../../service/dictionary.service";
8
+ import { TimeUtils } from "@colijnit/mainapi/build/utils/time-utils";
9
+ import { RelationSmallObject } from "@colijnit/mainapi/build/model/relation-small-object.bo";
10
+ import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
11
+ export declare class ActivityListComponent implements OnInit {
12
+ iconCacheService: IconCacheService;
13
+ private _dictionaryService;
14
+ readonly Icon: typeof Icon;
15
+ readonly RelationKind: typeof RelationKind;
16
+ readonly ActivityType: typeof ActivityType;
17
+ readonly TimeUtils: typeof TimeUtils;
18
+ showClass(): boolean;
19
+ activities: Activity[];
20
+ remarkIcon: Icon;
21
+ workIcon: Icon;
22
+ showActivityPopup: Boolean;
23
+ currentActivityDocuments: CoDocument[];
24
+ constructor(iconCacheService: IconCacheService, _dictionaryService: DictionaryService);
25
+ ngOnInit(): Promise<void>;
26
+ getRelationKind(author: RelationSmallObject): RelationKind;
27
+ getDateString(date: Date): string;
28
+ getActivityIcon(activity: Activity): Icon;
29
+ showAttachments(activity: Activity): boolean;
30
+ showWorkedTime(activity: Activity): boolean;
31
+ getWorkedTime(activity: Activity): number;
32
+ openActivityPopup(activity: Activity): void;
33
+ }
@@ -0,0 +1,2 @@
1
+ export declare class ActivityListModule {
2
+ }
@@ -0,0 +1,68 @@
1
+ @include export-module('cc-activity-list-layout') {
2
+ .co-activity-list {
3
+ .activity-list-wrapper {
4
+ display: flex;
5
+ flex-direction: column;
6
+ row-gap: 10px;
7
+
8
+ .activity-wrapper {
9
+ display: flex;
10
+ justify-content: flex-end;
11
+
12
+ .activity-display {
13
+ display: flex;
14
+ flex-direction: column;
15
+ row-gap: 5px;
16
+ width: 75%;
17
+
18
+ .activity-display-title {
19
+ display: flex;
20
+ flex-direction: row;
21
+ column-gap: 10px;
22
+ align-items: center;
23
+ justify-content: flex-end;
24
+ padding-right: 5px;
25
+
26
+ .co-icon {
27
+ width: 20px;
28
+ height: 20px;
29
+ }
30
+ }
31
+
32
+ .activity-display-content {
33
+ display: flex;
34
+ flex-direction: column;
35
+ border-radius: 5px;
36
+ background-color: $sc-color-action;
37
+ padding: 10px;
38
+
39
+ .activity-display-body {
40
+ display: flex;
41
+ align-items: center;
42
+ }
43
+
44
+ .activity-display-footer {
45
+ display: flex;
46
+ flex-direction: row;
47
+ column-gap: 10px;
48
+ align-items: center;
49
+ justify-content: flex-end;
50
+
51
+ .co-icon {
52
+ width: 20px;
53
+ height: 20px;
54
+ }
55
+ }
56
+ }
57
+
58
+ .customer-reply-content {
59
+ background-color: $sc-color-light-accent;
60
+ }
61
+ }
62
+ }
63
+ .customer-reply-wrapper {
64
+ justify-content: flex-start;
65
+ }
66
+ }
67
+ }
68
+ }
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-activity-list-theme') {
2
+ .co-activity-list {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -0,0 +1,14 @@
1
+ import { Icon } from "../../enum/icon.enum";
2
+ import { IconCacheService } from "../../service/icon-cache.service";
3
+ import { DictionaryService } from "../../service/dictionary.service";
4
+ export declare class AppFileDropzoneComponent {
5
+ protected dictionary: DictionaryService;
6
+ iconCacheService: IconCacheService;
7
+ readonly icons: typeof Icon;
8
+ customDropActionMessage: string;
9
+ showClass(): boolean;
10
+ readonly Icons: typeof Icon;
11
+ private readonly _defaultDropActionMessage;
12
+ constructor(dictionary: DictionaryService, iconCacheService: IconCacheService);
13
+ getDropActionMessage(): string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export declare class AppFileDropzoneModule {
2
+ }
@@ -0,0 +1,61 @@
1
+ @include export-module('co-app-file-dropzone-layout') {
2
+ .co-app-file-dropzone {
3
+ {
4
+ pointer-events: none;
5
+ position: fixed;
6
+ top : 0;
7
+ left : 0;
8
+ width: 100%;
9
+ height: 100%;
10
+ z-index: 9001; //should overlay popup cards too
11
+ display: flex;
12
+ }
13
+
14
+ .drop-files-wrapper {
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ width: 100%;
19
+ height: 100%;
20
+ div.description {
21
+ display: flex;
22
+ flex-direction: column;
23
+ padding: 20px;
24
+ height: 200px;
25
+ width: 350px;
26
+ background: #171721;
27
+ border: 1px solid red;
28
+ border-radius: 4px;
29
+ color: white;
30
+ }
31
+ span.title {
32
+ border: 1px solid white;
33
+ border-width: 0 0 1px 0;
34
+ padding-bottom: 11px;
35
+ margin-bottom: 11px;
36
+ /* font-weight: bold; */
37
+ font-size: 16px;
38
+ }
39
+ }
40
+ .dropzone {
41
+ position: absolute;
42
+ width: 100%;
43
+ height: 100%;
44
+ }
45
+ .icon-wrapper {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ height: 100%;
50
+ }
51
+ icon ::ng-deep {
52
+ height: 100px;
53
+ width: 100px;
54
+ svg [fill] {
55
+ fill: #FFFFFF;
56
+ }
57
+ }
58
+ }
59
+ }
60
+
61
+
@@ -0,0 +1,4 @@
1
+ @include export-module('co-app-file-dropzone-theme') {
2
+ .co-app-file-dropzone {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -0,0 +1,42 @@
1
+ import { EventEmitter, OnDestroy } from "@angular/core";
2
+ import { FormComponent, PromptService } from "@colijnit/corecomponents_v12";
3
+ import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
4
+ import { Icon } from "../../enum/icon.enum";
5
+ import { FileTypeImagePipe } from "../../pipe/file-type-image.pipe";
6
+ import { IconCacheService } from "../../service/icon-cache.service";
7
+ export declare class FileUploadComponent implements OnDestroy {
8
+ private _promptService;
9
+ private _fileTypeImgPipe;
10
+ iconService: IconCacheService;
11
+ readonly icons: typeof Icon;
12
+ form: FormComponent;
13
+ set file(document: CoDocument);
14
+ get file(): CoDocument;
15
+ icon: Icon;
16
+ link: boolean;
17
+ readonly: boolean;
18
+ isAddingTile: boolean;
19
+ fileSavesOnPopupOkClick: boolean;
20
+ isEditable: boolean;
21
+ set label(value: string);
22
+ get label(): string;
23
+ showTrashCan: boolean;
24
+ showImage: boolean;
25
+ customImageClick: boolean;
26
+ deleteClick: EventEmitter<any>;
27
+ editClick: EventEmitter<CoDocument>;
28
+ imageClick: EventEmitter<CoDocument>;
29
+ showClass(): boolean;
30
+ get isLink(): boolean;
31
+ previewImage: string;
32
+ private _file;
33
+ private _docBodyChangeSub;
34
+ private _label;
35
+ constructor(_promptService: PromptService, _fileTypeImgPipe: FileTypeImagePipe, iconService: IconCacheService);
36
+ ngOnDestroy(): void;
37
+ onDeleteClick(): void;
38
+ onImageClick(): Promise<void>;
39
+ onPencilClick(): Promise<void>;
40
+ private _listenForDocumentBodyChanges;
41
+ private _updatePreviewImage;
42
+ }
@@ -0,0 +1,2 @@
1
+ export declare class FileUploadModule {
2
+ }
@@ -0,0 +1,59 @@
1
+ @include export-module('co-file-upload-layout') {
2
+ .co-file-upload {
3
+ font-family: $sc-file-upload-font-family;
4
+ font-size: $sc-file-upload-font-size;
5
+ position: relative;
6
+ &.link {
7
+ .image {
8
+ cursor: pointer;
9
+ }
10
+ }
11
+ .image {
12
+ cursor: pointer;
13
+ }
14
+ ::ng-deep .hidden {
15
+ display: none !important;
16
+ }
17
+ &:hover {
18
+ button-colijn.edit-file {
19
+ opacity: 1;
20
+ transition: 0.14s ease-out
21
+ }
22
+ }
23
+ .trash {
24
+ cursor: pointer;
25
+ opacity: 0.5;
26
+ background-color: lightgrey;
27
+ position: absolute;
28
+ top: 0;
29
+ right: 0;
30
+ &:hover {
31
+ opacity: 1;
32
+ }
33
+ }
34
+ .add-button {
35
+ cursor: pointer;
36
+ position: absolute;
37
+ bottom: 0;
38
+ right: 0;
39
+ }
40
+
41
+ tile-render {
42
+ height: auto;
43
+ }
44
+
45
+ .edit-file {
46
+ position: absolute;
47
+ top: 50%;
48
+ left: 50%;
49
+ margin-right: -50%;
50
+ transform: translate(-50%, -50%);
51
+ cursor: pointer;
52
+ padding: 0;
53
+ opacity: 0;
54
+ background-color: #1A73E8;
55
+ }
56
+ }
57
+ }
58
+
59
+
@@ -0,0 +1,2 @@
1
+ $sc-file-upload-font-family: $sc-font-family !default;
2
+ $sc-file-upload-font-size: $sc-font-size !default;
@@ -0,0 +1,4 @@
1
+ @include export-module('co-file-upload-theme') {
2
+ .co-file-upload {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -0,0 +1,75 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormComponent } from '@colijnit/corecomponents_v12';
3
+ import { DocumentPublication } from "@colijnit/articleapi/build/enum/refcode/document-publication.enum";
4
+ import { StoreGroup } from "@colijnit/mainapi/build/model/store-group.bo";
5
+ import { PromptService } from "@colijnit/corecomponents_v12";
6
+ import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
7
+ import { TagCategory } from "../../enum/tag-category.enum";
8
+ import { FilesUploadConfigObjects } from "../../enum/files-upload-config-objects";
9
+ import { TableName } from "../../enum/table-name.enum";
10
+ import { FileType } from "../../enum/file-type";
11
+ import { DocumentEmailReport } from "../../enum/document-email-report.enum";
12
+ import { TagsComponentConfigNames } from "../../enum/tags-component-config-names";
13
+ import { DomainMultipleName } from "../../enum/domain-multiple-name.enum";
14
+ import { TagTreeItem } from "../../model/tag-tree-item.bo";
15
+ import { FileTypeImagePipe } from "../../pipe/file-type-image.pipe";
16
+ export declare class FileUploadPopupComponent implements OnInit {
17
+ private _promptService;
18
+ private _fileTypeImgPipe;
19
+ form: FormComponent;
20
+ useWithoutSettingProps: boolean;
21
+ hasPublicAccessVisible: boolean;
22
+ showDocumentReportPicker: boolean;
23
+ set documentUnderEdit(doc: CoDocument);
24
+ get documentUnderEdit(): CoDocument;
25
+ set readonly(value: boolean);
26
+ set filesUploadConfigObjects(value: FilesUploadConfigObjects);
27
+ tagCategory: TagCategory;
28
+ medicalUserGroups: boolean;
29
+ displayReadWriteAccess: boolean;
30
+ tagReferenceTable: TableName;
31
+ documentKey: string;
32
+ documentTable: string;
33
+ fileType: FileType;
34
+ addDocumentByUrl: boolean;
35
+ readonly documentChangeEvent: EventEmitter<CoDocument>;
36
+ readonly popupCloseEvent: EventEmitter<void>;
37
+ showClass(): boolean;
38
+ readonly documentPublication: typeof DocumentPublication;
39
+ readonly documentEmailReports: typeof DocumentEmailReport;
40
+ get showReadWriteAccess(): boolean;
41
+ get filesUploadConfigObjects(): FilesUploadConfigObjects;
42
+ get isWorkability(): boolean;
43
+ get docUnderEditIsReadOnly(): boolean;
44
+ get thumbnail(): string;
45
+ get popupHeader(): string;
46
+ get publicationConfigName(): string;
47
+ get tagsConfigName(): TagsComponentConfigNames;
48
+ readonly domain: typeof DomainMultipleName;
49
+ readonly fileTypes: typeof FileType;
50
+ _documentUnderEdit: CoDocument;
51
+ hideCancel: boolean;
52
+ storeGroups: StoreGroup[];
53
+ publicationIds: number[];
54
+ storeGroupIds: string[];
55
+ userGroupsForWrite: number[];
56
+ userGroupsForRead: number[];
57
+ documentTags: TagTreeItem[];
58
+ private _filesUploadConfigObjects;
59
+ private _boFactory;
60
+ private _readonly;
61
+ private _publicationNumber;
62
+ private _reportsNumber;
63
+ private _thumbnail;
64
+ constructor(_promptService: PromptService, _fileTypeImgPipe: FileTypeImagePipe);
65
+ ngOnInit(): void;
66
+ loadCollection(): Promise<void>;
67
+ onPreviewClick(): void;
68
+ saveDocumentUnderEditRights(): void;
69
+ onPopupOkClick(): void;
70
+ handlePropertyChange(refSumOfEnabledItems: number): any;
71
+ handleReportsPropertyChange(refSumOfEnabledItems: number): any;
72
+ onValidSubmit(): Promise<void>;
73
+ onPopupCancelClick(): Promise<void>;
74
+ onPopupClose(): void;
75
+ }
@@ -0,0 +1,2 @@
1
+ export declare class FileUploadPopupModule {
2
+ }
@@ -0,0 +1,48 @@
1
+ @include export-module('co-file-upload-popup-layout') {
2
+ .co-file-upload-popup {
3
+ font-family: $sc-file-upload-popup-font-family;
4
+ font-size: $sc-file-upload-popup-font-size;
5
+ .co-dialog {
6
+ display: flex;
7
+ flex-direction: row;
8
+ overflow-y: auto;
9
+
10
+ .document-thumb {
11
+ height: 120px;
12
+ }
13
+
14
+ .horizontal-layout-column {
15
+ > div {
16
+ width: 50%;
17
+
18
+ &.right, &.column-right {
19
+ margin-left: 15px;
20
+ }
21
+ }
22
+
23
+ display: flex;
24
+ }
25
+
26
+ multiple-property-toggler {
27
+ width: 500px;
28
+
29
+ .property-toggling-container {
30
+ height: 150px;
31
+ display: flex;
32
+ gap: 10px;
33
+ flex-wrap: wrap;
34
+
35
+ .row {
36
+ width: 32%;
37
+ display: flex;
38
+ font-size: 10px;
39
+ align-items: center;
40
+ height: auto;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+
48
+
@@ -0,0 +1,2 @@
1
+ $sc-file-upload-popup-font-family: $sc-font-family !default;
2
+ $sc-file-upload-popup-font-size: $sc-font-size !default;
@@ -0,0 +1,5 @@
1
+ @include export-module('co-file-upload-popup-theme') {
2
+ .co-file-upload-popup {
3
+
4
+ }
5
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";