@colijnit/sharedcomponents 1.0.69 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +1203 -0
- package/bundles/colijnit-sharedcomponents.umd.js +3285 -4
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +36 -0
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +37 -1
- package/esm2015/lib/businessobject/co-document-right.bo.js +1 -1
- package/esm2015/lib/components/activity-list-header/activity-list-header.component.js +67 -0
- package/esm2015/lib/components/activity-list-header/activity-list-header.module.js +28 -0
- package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter-popup.component.js +55 -0
- package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.component.js +103 -0
- package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.module.js +34 -0
- package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +129 -0
- package/esm2015/lib/components/activity-overview-component/component-activity-overview.module.js +26 -0
- package/esm2015/lib/components/activity-overview-component/components/base-activity-overview.component.js +284 -0
- package/esm2015/lib/components/image-display/image-display.component.js +7 -7
- package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.js +100 -0
- package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.js +25 -0
- package/esm2015/lib/components/modify-task-form/components/base-activity-summary.component.js +134 -0
- package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.js +118 -0
- package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.js +27 -0
- package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.js +88 -0
- package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.js +24 -0
- package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +77 -0
- package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.js +24 -0
- package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.js +71 -0
- package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.js +25 -0
- package/esm2015/lib/components/modify-task-form/components/task-details/task-details.component.js +102 -0
- package/esm2015/lib/components/modify-task-form/components/task-details/task-details.module.js +25 -0
- package/esm2015/lib/components/modify-task-form/modify-task-form.component.js +258 -0
- package/esm2015/lib/components/modify-task-form/modify-task-form.module.js +33 -0
- package/esm2015/lib/components/open-activity-list/component-activity-list.component.js +293 -0
- package/esm2015/lib/components/open-activity-list/component-activity-list.module.js +30 -0
- package/esm2015/lib/components/open-activity-list/components/base-open-activity-list.component.js +264 -0
- package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.js +41 -0
- package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.module..js +19 -0
- package/esm2015/lib/components/task-modifyer/task-modifier.component.js +270 -0
- package/esm2015/lib/components/task-modifyer/task-modifyer.module..js +31 -0
- package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle-popup.js +53 -0
- package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.js +81 -0
- package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.js +34 -0
- package/esm2015/lib/directives/absolute-overlay-template.directive.js +29 -0
- package/esm2015/lib/directives/align-with.directive.js +174 -0
- package/esm2015/lib/directives/click-outside.directive.js +25 -0
- package/esm2015/lib/directives/directives.module.js +22 -0
- package/esm2015/lib/enum/activity-cfg-name.enum.js +29 -0
- package/esm2015/lib/enum/app-button-type.enum.js +11 -0
- package/esm2015/lib/enum/icon.enum.js +13 -1
- package/esm2015/lib/interface/activities-task-config-names.js +2 -0
- package/esm2015/lib/interface/operation-callback-activity.js +5 -0
- package/esm2015/lib/interface/operation-callback-function-with-validation.js +5 -0
- package/esm2015/lib/interface/operation-callback-simple-function.js +1 -1
- package/esm2015/lib/model/icon-svg.js +13 -1
- package/esm2015/lib/service/app-absolute-overlay-outlet.service.js +20 -0
- package/esm2015/lib/service/shared-connector.service.js +121 -1
- package/esm2015/lib/service/shared.service.js +50 -1
- package/esm2015/lib/utils/browser-utils.js +100 -0
- package/esm2015/lib/utils/event-utils.js +59 -0
- package/esm2015/lib/utils/string-utils.js +5 -1
- package/esm2015/public-api.js +3 -1
- package/favicon.ico +0 -0
- package/fesm2015/colijnit-sharedcomponents.js +3419 -9
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/index.html +12 -0
- package/lib/components/activity-list-header/activity-list-header.component.d.ts +25 -0
- package/lib/components/activity-list-header/activity-list-header.module.d.ts +2 -0
- package/lib/components/activity-list-header/components/period-filter/period-filter-popup.component.d.ts +11 -0
- package/lib/components/activity-list-header/components/period-filter/period-filter.component.d.ts +26 -0
- package/lib/components/activity-list-header/components/period-filter/period-filter.module.d.ts +2 -0
- package/lib/components/activity-list-header/components/period-filter/style/_layout.scss +62 -0
- package/lib/components/activity-list-header/components/period-filter/style/_material-definition.scss +1 -0
- package/lib/components/activity-list-header/components/period-filter/style/_theme.scss +5 -0
- package/lib/components/activity-list-header/components/period-filter/style/material.scss +4 -0
- package/lib/components/activity-list-header/style/_layout.scss +84 -0
- package/lib/components/activity-list-header/style/_material-definition.scss +1 -0
- package/lib/components/activity-list-header/style/_theme.scss +5 -0
- package/lib/components/activity-list-header/style/material.scss +4 -0
- package/lib/components/activity-overview-component/component-activity-overview.component.d.ts +13 -0
- package/lib/components/activity-overview-component/component-activity-overview.module.d.ts +2 -0
- package/lib/components/activity-overview-component/components/base-activity-overview.component.d.ts +84 -0
- package/lib/components/activity-overview-component/style/_layout.scss +107 -0
- package/lib/components/activity-overview-component/style/_material-definition.scss +1 -0
- package/lib/components/activity-overview-component/style/_theme.scss +5 -0
- package/lib/components/activity-overview-component/style/material.scss +4 -0
- package/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.d.ts +31 -0
- package/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.d.ts +2 -0
- package/lib/components/modify-task-form/components/activity-summary-block/style/_layout.scss +139 -0
- package/lib/components/modify-task-form/components/activity-summary-block/style/_material-definition.scss +0 -0
- package/lib/components/modify-task-form/components/activity-summary-block/style/_theme.scss +5 -0
- package/lib/components/modify-task-form/components/activity-summary-block/style/material.scss +4 -0
- package/lib/components/modify-task-form/components/base-activity-summary.component.d.ts +53 -0
- package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.d.ts +28 -0
- package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.d.ts +2 -0
- package/lib/components/modify-task-form/components/creation-summary-block/style/_layout.scss +5 -0
- package/lib/components/modify-task-form/components/creation-summary-block/style/_material-definition.scss +0 -0
- package/lib/components/modify-task-form/components/creation-summary-block/style/_theme.scss +5 -0
- package/lib/components/modify-task-form/components/creation-summary-block/style/material.scss +4 -0
- package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.d.ts +24 -0
- package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.d.ts +2 -0
- package/lib/components/modify-task-form/components/executive-summary-block/style/_layout.scss +5 -0
- package/lib/components/modify-task-form/components/executive-summary-block/style/_material-definition.scss +0 -0
- package/lib/components/modify-task-form/components/executive-summary-block/style/_theme.scss +5 -0
- package/lib/components/modify-task-form/components/executive-summary-block/style/material.scss +4 -0
- package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.d.ts +23 -0
- package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.d.ts +2 -0
- package/lib/components/modify-task-form/components/notification-summary-block/style/_layout.scss +161 -0
- package/lib/components/modify-task-form/components/notification-summary-block/style/_material-definition.scss +0 -0
- package/lib/components/modify-task-form/components/notification-summary-block/style/_theme.scss +5 -0
- package/lib/components/modify-task-form/components/notification-summary-block/style/material.scss +4 -0
- package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.d.ts +15 -0
- package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.d.ts +2 -0
- package/lib/components/modify-task-form/components/status-summary-block/style/_layout.scss +18 -0
- package/lib/components/modify-task-form/components/status-summary-block/style/_material-definition.scss +0 -0
- package/lib/components/modify-task-form/components/status-summary-block/style/_theme.scss +5 -0
- package/lib/components/modify-task-form/components/status-summary-block/style/material.scss +4 -0
- package/lib/components/modify-task-form/components/task-details/style/_layout.scss +142 -0
- package/lib/components/modify-task-form/components/task-details/style/_material-definition.scss +0 -0
- package/lib/components/modify-task-form/components/task-details/style/_theme.scss +5 -0
- package/lib/components/modify-task-form/components/task-details/style/material.scss +4 -0
- package/lib/components/modify-task-form/components/task-details/task-details.component.d.ts +21 -0
- package/lib/components/modify-task-form/components/task-details/task-details.module.d.ts +2 -0
- package/lib/components/modify-task-form/modify-task-form.component.d.ts +49 -0
- package/lib/components/modify-task-form/modify-task-form.module.d.ts +2 -0
- package/lib/components/modify-task-form/style/_layout.scss +135 -0
- package/lib/components/modify-task-form/style/_material-definition.scss +0 -0
- package/lib/components/modify-task-form/style/_theme.scss +5 -0
- package/lib/components/modify-task-form/style/material.scss +4 -0
- package/lib/components/open-activity-list/component-activity-list.component.d.ts +69 -0
- package/lib/components/open-activity-list/component-activity-list.module.d.ts +2 -0
- package/lib/components/open-activity-list/components/base-open-activity-list.component.d.ts +46 -0
- package/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.d.ts +4 -0
- package/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.module..d.ts +2 -0
- package/lib/components/open-activity-list/components/personal-activity-overview/style/_layout.scss +105 -0
- package/lib/components/open-activity-list/components/personal-activity-overview/style/_material-definition.scss +0 -0
- package/lib/components/open-activity-list/components/personal-activity-overview/style/_theme.scss +4 -0
- package/lib/components/open-activity-list/components/personal-activity-overview/style/material.scss +4 -0
- package/lib/components/open-activity-list/style/_layout.scss +26 -0
- package/lib/components/open-activity-list/style/_material-definition.scss +0 -0
- package/lib/components/open-activity-list/style/_theme.scss +4 -0
- package/lib/components/open-activity-list/style/material.scss +4 -0
- package/lib/components/task-modifyer/style/_layout.scss +5 -0
- package/lib/components/task-modifyer/style/_material-definition.scss +0 -0
- package/lib/components/task-modifyer/style/_theme.scss +4 -0
- package/lib/components/task-modifyer/style/material.scss +4 -0
- package/lib/components/task-modifyer/task-modifier.component.d.ts +67 -0
- package/lib/components/task-modifyer/task-modifyer.module..d.ts +2 -0
- package/lib/components/workflow-notification-toggle/style/_layout.scss +59 -0
- package/lib/components/workflow-notification-toggle/style/_material-definition.scss +0 -0
- package/lib/components/workflow-notification-toggle/style/_theme.scss +4 -0
- package/lib/components/workflow-notification-toggle/style/material.scss +4 -0
- package/lib/components/workflow-notification-toggle/workflow-notification-toggle-popup.d.ts +15 -0
- package/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.d.ts +28 -0
- package/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.d.ts +2 -0
- package/lib/directives/absolute-overlay-template.directive.d.ts +9 -0
- package/lib/directives/align-with.directive.d.ts +35 -0
- package/lib/directives/click-outside.directive.d.ts +7 -0
- package/lib/directives/directives.module.d.ts +2 -0
- package/lib/enum/activity-cfg-name.enum.d.ts +27 -0
- package/lib/enum/app-button-type.enum.d.ts +9 -0
- package/lib/enum/icon.enum.d.ts +12 -0
- package/lib/interface/activities-task-config-names.d.ts +12 -0
- package/lib/interface/operation-callback-activity.d.ts +5 -0
- package/lib/interface/operation-callback-function-with-validation.d.ts +5 -0
- package/lib/service/app-absolute-overlay-outlet.service.d.ts +9 -0
- package/lib/service/shared-connector.service.d.ts +18 -0
- package/lib/service/shared.service.d.ts +16 -0
- package/lib/utils/browser-utils.d.ts +15 -0
- package/lib/utils/event-utils.d.ts +12 -0
- package/lib/utils/string-utils.d.ts +1 -0
- package/main.36b466467ac98ce720f9.js +1 -0
- package/package.json +2 -1
- package/polyfills.907fe9d1887c5de17993.js +1 -0
- package/public-api.d.ts +2 -0
- package/runtime.8aac21847ed3d3829cca.js +1 -0
- package/styles.6375d1d30814ecba5d0c.css +1 -0
package/index.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head>
|
|
2
|
+
<meta charset="utf-8">
|
|
3
|
+
<title>Sharedcomponents</title>
|
|
4
|
+
<base href="/">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
7
|
+
<style>@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Public+Sans:wght@100;200;300;400;500;600;800;900&display=swap);@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;800;900&display=swap);@import url(https://fonts.googleapis.com/css2?family=Public+Sans&display=swap);body,html{margin:0;overflow:hidden}body,html{width:100%;height:100%}*{box-sizing:border-box;padding:0;margin:0}</style><link rel="stylesheet" href="styles.6375d1d30814ecba5d0c.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.6375d1d30814ecba5d0c.css"></noscript></head>
|
|
8
|
+
<body>
|
|
9
|
+
<app-root></app-root>
|
|
10
|
+
<script src="runtime.8aac21847ed3d3829cca.js" defer></script><script src="polyfills.907fe9d1887c5de17993.js" defer></script><script src="main.36b466467ac98ce720f9.js" defer></script>
|
|
11
|
+
|
|
12
|
+
</body></html>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { Icon } from "../../enum/icon.enum";
|
|
3
|
+
import { ActivitySortType } from "@colijnit/mainapi/build/enum/activity-sort-type.enum";
|
|
4
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
5
|
+
import { OperationCallbackFunctionWithValidation } from "../../interface/operation-callback-function-with-validation";
|
|
6
|
+
export declare class ActivityListHeaderComponent {
|
|
7
|
+
iconService: IconCacheService;
|
|
8
|
+
readonly icons: typeof Icon;
|
|
9
|
+
readonly activitySortType: typeof ActivitySortType;
|
|
10
|
+
title: string;
|
|
11
|
+
searchText: string;
|
|
12
|
+
showUsergroupActivities: boolean;
|
|
13
|
+
table: string;
|
|
14
|
+
key: string;
|
|
15
|
+
setHasPausedNotificationsForWorkflowProcessOperation: OperationCallbackFunctionWithValidation;
|
|
16
|
+
searchTextChange: EventEmitter<string>;
|
|
17
|
+
periodFilterClicked: EventEmitter<{
|
|
18
|
+
from: Date;
|
|
19
|
+
to: Date;
|
|
20
|
+
}>;
|
|
21
|
+
showUsergroupActivitiesChange: EventEmitter<boolean>;
|
|
22
|
+
showClass(): boolean;
|
|
23
|
+
constructor(iconService: IconCacheService);
|
|
24
|
+
onToggleClicked(toggled: boolean): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
|
+
export declare class PeriodFilterPopupComponent implements OnDestroy {
|
|
3
|
+
element: ElementRef;
|
|
4
|
+
showClass(): boolean;
|
|
5
|
+
possibleFilters: string[];
|
|
6
|
+
parentForOverlay: ElementRef;
|
|
7
|
+
closePopup: EventEmitter<any>;
|
|
8
|
+
filterClicked: EventEmitter<string>;
|
|
9
|
+
constructor(element: ElementRef);
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
}
|
package/lib/components/activity-list-header/components/period-filter/period-filter.component.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
|
+
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
3
|
+
import { Icon } from "../../../../enum/icon.enum";
|
|
4
|
+
import { OverlayService } from "@colijnit/corecomponents_v12";
|
|
5
|
+
export declare class PeriodFilterComponent implements OnDestroy {
|
|
6
|
+
element: ElementRef;
|
|
7
|
+
iconService: IconCacheService;
|
|
8
|
+
private _overlayService;
|
|
9
|
+
readonly icon: typeof Icon;
|
|
10
|
+
readonly possibleFilters: string[];
|
|
11
|
+
showPopup: boolean;
|
|
12
|
+
showClass(): boolean;
|
|
13
|
+
handleClick(): void;
|
|
14
|
+
filterClicked: EventEmitter<{
|
|
15
|
+
from: Date;
|
|
16
|
+
to: Date;
|
|
17
|
+
}>;
|
|
18
|
+
currentFilter: string;
|
|
19
|
+
private _periodPopupRef;
|
|
20
|
+
constructor(element: ElementRef, iconService: IconCacheService, _overlayService: OverlayService);
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
showFilterItems(): void;
|
|
23
|
+
closePopup(): void;
|
|
24
|
+
onFilterClick(filter: string): void;
|
|
25
|
+
private _emitFilterClicked;
|
|
26
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@include export-module('co-period-filter-layout') {
|
|
2
|
+
.co-period-filter {
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
user-select: none;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
height: 40px;
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
icon {
|
|
11
|
+
height: 20px;
|
|
12
|
+
width: 20px;
|
|
13
|
+
[fill] {
|
|
14
|
+
fill: $color-action;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//.current-filter {
|
|
18
|
+
// color: $color-action;
|
|
19
|
+
//}
|
|
20
|
+
::ng-deep #period_filter_dropdown_template {
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
display: block;
|
|
23
|
+
width: 300px;
|
|
24
|
+
border-radius: 5px;
|
|
25
|
+
background: white;
|
|
26
|
+
box-shadow: 1px 1px 10px 1px rgba(72,79,96,.25);
|
|
27
|
+
::ng-deep .label {
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
height: 50px;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
font-size: 13px;
|
|
33
|
+
padding: 0 10px;
|
|
34
|
+
}
|
|
35
|
+
::ng-deep .item {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
height: 50px;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: row;
|
|
40
|
+
align-items: center;
|
|
41
|
+
border-radius: 5px;
|
|
42
|
+
padding: 10px;
|
|
43
|
+
icon {
|
|
44
|
+
height: 40px;
|
|
45
|
+
width: 40px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
background-color: #8faba6;
|
|
50
|
+
color: white;
|
|
51
|
+
::ng-deep icon {
|
|
52
|
+
[fill] {
|
|
53
|
+
fill: white;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
package/lib/components/activity-list-header/components/period-filter/style/_material-definition.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$color_text_light: #FAFAFA;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@include export-module('co-activity-list-header-layout') {
|
|
2
|
+
.co-activity-list-header {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
z-index: 1;
|
|
6
|
+
h2 {
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
}
|
|
9
|
+
.input-search {
|
|
10
|
+
width: 300px;
|
|
11
|
+
height: 30px;
|
|
12
|
+
background: $color_text_light;
|
|
13
|
+
border-radius: 5px;
|
|
14
|
+
margin-bottom: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.period-filter {
|
|
18
|
+
align-items: center;
|
|
19
|
+
height: 30px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.header-wrapper {
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sub-header {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-wrap: wrap-reverse;
|
|
29
|
+
padding-bottom: 10px;
|
|
30
|
+
border-color: $color-border;
|
|
31
|
+
border-bottom: 1px solid;
|
|
32
|
+
|
|
33
|
+
.first-column {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-basis: 250px;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
height: 40px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.second-column {
|
|
41
|
+
display: flex;
|
|
42
|
+
height: 40px;
|
|
43
|
+
align-items: flex-end;
|
|
44
|
+
flex: 1 1 300px;
|
|
45
|
+
.second-column-right {
|
|
46
|
+
display: flex;
|
|
47
|
+
column-gap: 5px;
|
|
48
|
+
width: 100%;
|
|
49
|
+
justify-content: flex-end;
|
|
50
|
+
.input-search {
|
|
51
|
+
width: auto;
|
|
52
|
+
flex: 1 1 300px;
|
|
53
|
+
min-width: 75px;
|
|
54
|
+
max-width: 300px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
::ng-deep tab-no-router {
|
|
61
|
+
margin-top: 14px;
|
|
62
|
+
|
|
63
|
+
nav.tab-no-router-nav {
|
|
64
|
+
padding-left: 0 !important; // todo: fix this
|
|
65
|
+
a {
|
|
66
|
+
color: #171721;
|
|
67
|
+
border-bottom-width: 3px;
|
|
68
|
+
padding-bottom: 14px;
|
|
69
|
+
&:hover {
|
|
70
|
+
color: #171721;
|
|
71
|
+
}
|
|
72
|
+
&.active {
|
|
73
|
+
color: #171721;
|
|
74
|
+
&:hover {
|
|
75
|
+
color: #171721;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$color_text_light: #FAFAFA;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CoreDialogService } from "@colijnit/corecomponents_v12";
|
|
2
|
+
import { BaseActivityOverviewComponent } from "./components/base-activity-overview.component";
|
|
3
|
+
import { Icon } from "../../enum/icon.enum";
|
|
4
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
5
|
+
import { DictionaryService } from "../../service/dictionary.service";
|
|
6
|
+
export declare class ComponentActivityOverviewComponent extends BaseActivityOverviewComponent {
|
|
7
|
+
iconCacheService: IconCacheService;
|
|
8
|
+
dialogService: CoreDialogService;
|
|
9
|
+
dictionaryService: DictionaryService;
|
|
10
|
+
readonly Icon: typeof Icon;
|
|
11
|
+
showClass(): boolean;
|
|
12
|
+
constructor(iconCacheService: IconCacheService, dialogService: CoreDialogService, dictionaryService: DictionaryService);
|
|
13
|
+
}
|
package/lib/components/activity-overview-component/components/base-activity-overview.component.d.ts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { Activity } from "@colijnit/mainapi/build/model/activity.bo";
|
|
3
|
+
import { Workflow } from "@colijnit/mainapi/build/model/workflow.bo";
|
|
4
|
+
import { WorkflowTrigger } from "@colijnit/mainapi/build/model/workflow-trigger.bo";
|
|
5
|
+
import { ModuleNavigationLink } from "@colijnit/mainapi/build/enum/module-navigation-link";
|
|
6
|
+
import { WorkflowGenericTransition } from "@colijnit/mainapi/build/model/workflow-generic-transition.bo";
|
|
7
|
+
import { ActivityViewModel } from "@colijnit/mainapi/build/model/activity-view-model";
|
|
8
|
+
import { CoreDialogService } from "@colijnit/corecomponents_v12";
|
|
9
|
+
import { Icon } from "../../../enum/icon.enum";
|
|
10
|
+
import { ActivityCfgName } from "../../../enum/activity-cfg-name.enum";
|
|
11
|
+
import { ActivitiesTaskConfigNames } from "../../../interface/activities-task-config-names";
|
|
12
|
+
import { OperationCallbackSimpleFunction } from "../../../interface/operation-callback-simple-function";
|
|
13
|
+
import { OperationCallbackFunctionWithValidation } from "../../../interface/operation-callback-function-with-validation";
|
|
14
|
+
import { DictionaryService } from "../../../service/dictionary.service";
|
|
15
|
+
import { TaskModifierComponent } from "../../task-modifyer/task-modifier.component";
|
|
16
|
+
export declare abstract class BaseActivityOverviewComponent {
|
|
17
|
+
private _dialogService;
|
|
18
|
+
private _dictionaryService;
|
|
19
|
+
readonly icon: typeof Icon;
|
|
20
|
+
readonly cfgNames: typeof ActivityCfgName;
|
|
21
|
+
readonly taskCfgNames: ActivitiesTaskConfigNames;
|
|
22
|
+
taskModifier: TaskModifierComponent;
|
|
23
|
+
set viewModel(value: ActivityViewModel);
|
|
24
|
+
set triggerToFireOnSave(value: WorkflowTrigger);
|
|
25
|
+
get triggerToFireOnSave(): WorkflowTrigger;
|
|
26
|
+
canFireTriggerOperation: OperationCallbackSimpleFunction;
|
|
27
|
+
prepareWorkflowOperation: OperationCallbackSimpleFunction;
|
|
28
|
+
lockTaskOperation: OperationCallbackSimpleFunction;
|
|
29
|
+
deleteActivityOperation: OperationCallbackSimpleFunction;
|
|
30
|
+
upsertActivityOperation: OperationCallbackSimpleFunction;
|
|
31
|
+
fireGenericTriggerOperation: OperationCallbackFunctionWithValidation;
|
|
32
|
+
fireTriggerOperation: OperationCallbackFunctionWithValidation;
|
|
33
|
+
userRelationId: number;
|
|
34
|
+
userGroupId: number;
|
|
35
|
+
handleOpenLinkSidebar: boolean;
|
|
36
|
+
activityChange: EventEmitter<Activity>;
|
|
37
|
+
readonly activityDeleted: EventEmitter<Activity>;
|
|
38
|
+
triggerFired: EventEmitter<Activity>;
|
|
39
|
+
genericTriggerFired: EventEmitter<Activity>;
|
|
40
|
+
formCreated: EventEmitter<void>;
|
|
41
|
+
openLink: EventEmitter<Activity>;
|
|
42
|
+
linkClicked: EventEmitter<{
|
|
43
|
+
module: string;
|
|
44
|
+
id: string;
|
|
45
|
+
}>;
|
|
46
|
+
set activity(value: Activity);
|
|
47
|
+
get activity(): Activity;
|
|
48
|
+
workFlow: Workflow;
|
|
49
|
+
targetDate: Date;
|
|
50
|
+
deadlineDate: Date;
|
|
51
|
+
activityName: string;
|
|
52
|
+
activityDescription: string;
|
|
53
|
+
activityTitle: string;
|
|
54
|
+
activityContextTitle: string;
|
|
55
|
+
openButtonLabel: string;
|
|
56
|
+
overDue: boolean;
|
|
57
|
+
userIsSupervisor: boolean;
|
|
58
|
+
table: string;
|
|
59
|
+
key: string;
|
|
60
|
+
urls: string[];
|
|
61
|
+
firstTriggerToCloseWF: WorkflowTrigger;
|
|
62
|
+
isTask: boolean;
|
|
63
|
+
hasTriggers: boolean;
|
|
64
|
+
link: ModuleNavigationLink;
|
|
65
|
+
linkDescription: string;
|
|
66
|
+
sameDates: boolean;
|
|
67
|
+
private _activity;
|
|
68
|
+
private _viewModel;
|
|
69
|
+
private _triggerToFireOnSave;
|
|
70
|
+
constructor(_dialogService: CoreDialogService, _dictionaryService: DictionaryService);
|
|
71
|
+
handleButtonEndClick(): void;
|
|
72
|
+
handleGenericTriggerClick(event: WorkflowGenericTransition): Promise<void>;
|
|
73
|
+
handleTriggerClick(eventTrigger: WorkflowTrigger): Promise<void>;
|
|
74
|
+
handleOpenLink(event: MouseEvent, url?: string): void;
|
|
75
|
+
handleOpenLinkOrUrl(event: MouseEvent): void;
|
|
76
|
+
startModifyingTask(): void;
|
|
77
|
+
showTaskFormAndWorkLog(): void;
|
|
78
|
+
onSaveActivity(activity: Activity): void;
|
|
79
|
+
onDeleteActivity(activity: Activity): void;
|
|
80
|
+
private _prepareData;
|
|
81
|
+
private _setFirstTriggerToCloseWF;
|
|
82
|
+
private _openUrl;
|
|
83
|
+
private _stopEventPropagation;
|
|
84
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@include export-module('co-component-activity-overview-layout') {
|
|
2
|
+
.co-component-activity-overview {
|
|
3
|
+
user-select: none;
|
|
4
|
+
display: block;
|
|
5
|
+
background: rgba(255, 255, 255, 0);
|
|
6
|
+
transition: all .2s ease-in-out;
|
|
7
|
+
box-shadow: inset 0 0 1px rgba(1, 1, 1, 0.3);
|
|
8
|
+
padding: 10px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
.overview-wrapper {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
align-items: baseline;
|
|
15
|
+
}
|
|
16
|
+
.overview-wrapper-icons {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
.overview-wrapper-labels {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
}
|
|
24
|
+
.overview-wrapper-date {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
margin-left: auto;
|
|
29
|
+
}
|
|
30
|
+
.activity-context-title {
|
|
31
|
+
font-size: 10px;
|
|
32
|
+
}
|
|
33
|
+
.activity-title {
|
|
34
|
+
}
|
|
35
|
+
.date-wrapper {
|
|
36
|
+
font-size: 10px;
|
|
37
|
+
display: flex;
|
|
38
|
+
.icon {
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
height: 20px;
|
|
41
|
+
width: 20px;
|
|
42
|
+
}
|
|
43
|
+
&.overdue {
|
|
44
|
+
color: red;
|
|
45
|
+
.icon ::ng-deep [fill] {
|
|
46
|
+
fill: red;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.overview-icon {
|
|
52
|
+
.supervisor-icon {
|
|
53
|
+
margin-left: -10px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.overview-main {
|
|
58
|
+
display: flex;
|
|
59
|
+
width: 100%;
|
|
60
|
+
flex-direction: row;
|
|
61
|
+
margin-top: 10px;
|
|
62
|
+
flex-wrap: wrap;
|
|
63
|
+
column-gap: 10px;
|
|
64
|
+
row-gap: 5px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.button-trigger {
|
|
68
|
+
height: 22px;
|
|
69
|
+
padding: 5px 10px;
|
|
70
|
+
&:after {
|
|
71
|
+
display: none;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.button-trigger-icon {
|
|
76
|
+
height: 22px;
|
|
77
|
+
padding: 5px 25px 5px 10px;
|
|
78
|
+
&:after {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.date-divider {
|
|
84
|
+
margin: 0 5px;
|
|
85
|
+
font-weight: bold;
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
line-height: 7px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.date {
|
|
91
|
+
min-width: 35px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.date, .time {
|
|
95
|
+
flex-shrink: 0;
|
|
96
|
+
font-size: 10px;
|
|
97
|
+
line-height: 10px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:not(.overdue):hover {
|
|
101
|
+
background: #FAFAFA;
|
|
102
|
+
color: #171721;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$color_text_light: #FAFAFA;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, TemplateRef } from "@angular/core";
|
|
2
|
+
import { FormComponent, FormMasterService } from "@colijnit/corecomponents_v12";
|
|
3
|
+
import { Icon } from "../../../../enum/icon.enum";
|
|
4
|
+
export declare class ActivitySummaryBlockComponent implements OnDestroy {
|
|
5
|
+
private _formMaster;
|
|
6
|
+
elementRef: ElementRef;
|
|
7
|
+
readonly Icon: typeof Icon;
|
|
8
|
+
mainForm: FormComponent;
|
|
9
|
+
cssId: string;
|
|
10
|
+
noBorder: boolean;
|
|
11
|
+
icon: Icon;
|
|
12
|
+
editIcon: Icon;
|
|
13
|
+
image: string;
|
|
14
|
+
editTitle: string;
|
|
15
|
+
editTemplate: TemplateRef<any>;
|
|
16
|
+
extraButtonsTemplate: TemplateRef<any>;
|
|
17
|
+
readonly: boolean;
|
|
18
|
+
showButtons: boolean;
|
|
19
|
+
hideCancel: boolean;
|
|
20
|
+
actionIcon: boolean;
|
|
21
|
+
expandable: boolean;
|
|
22
|
+
saveClick: EventEmitter<any>;
|
|
23
|
+
cancelClick: EventEmitter<MouseEvent>;
|
|
24
|
+
showClass(): boolean;
|
|
25
|
+
get summaryElement(): ElementRef;
|
|
26
|
+
constructor(_formMaster: FormMasterService, elementRef: ElementRef);
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
handleOkClick(event: MouseEvent): void;
|
|
29
|
+
handleCancelClick(event: MouseEvent): void;
|
|
30
|
+
onValid(): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@include export-module('co-activity-summary-block-layout') {
|
|
2
|
+
.co-activity-summary-block{
|
|
3
|
+
height: auto;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
&:not(.no-border) {
|
|
7
|
+
border: 1px solid #DCE4EA;
|
|
8
|
+
}
|
|
9
|
+
.left-seperator {
|
|
10
|
+
&:before {
|
|
11
|
+
content: "|";
|
|
12
|
+
margin: 0 10px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.shrink-to-fit {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
svg {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
::ng-deep image-display {
|
|
27
|
+
height: 70px;
|
|
28
|
+
width: 70px;
|
|
29
|
+
span {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.icon-wrapper {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
background: #F8FBFA;
|
|
40
|
+
height: 70px;
|
|
41
|
+
width: 70px;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
border: 1px solid #DCE4EA;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
::ng-deep icon {
|
|
46
|
+
height: 60px !important;
|
|
47
|
+
width: 60px !important;
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
}
|
|
50
|
+
&.small {
|
|
51
|
+
height: 50px;
|
|
52
|
+
width: 50px;
|
|
53
|
+
::ng-deep icon {
|
|
54
|
+
height: 40px !important;
|
|
55
|
+
width: 40px !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.block-wrapper {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
.expandable-wrapper {
|
|
65
|
+
position: absolute;
|
|
66
|
+
bottom: 0;
|
|
67
|
+
left: 50%;
|
|
68
|
+
transform: translateX(-50%);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.content-wrapper {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
justify-content: space-between;
|
|
76
|
+
margin-left: 10px;
|
|
77
|
+
min-height: 70px;
|
|
78
|
+
height: auto;
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.value {
|
|
83
|
+
font-size: 13px;
|
|
84
|
+
font-weight: bold;
|
|
85
|
+
color: #171721;
|
|
86
|
+
align-items: center;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.title {
|
|
90
|
+
font-size: 11px;
|
|
91
|
+
line-height: 13px;
|
|
92
|
+
color: #171721;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.activity-summary-block-edit-template {
|
|
96
|
+
display: flex;
|
|
97
|
+
width: 100%;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
z-index: 9000;
|
|
101
|
+
max-height: 100%;
|
|
102
|
+
|
|
103
|
+
.template-wrapper {
|
|
104
|
+
margin-bottom: 10px;
|
|
105
|
+
}
|
|
106
|
+
::ng-deep co-form {
|
|
107
|
+
co-list-of-values {
|
|
108
|
+
margin-bottom: 5px;
|
|
109
|
+
&:before {
|
|
110
|
+
box-shadow: none;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.title-wrapper {
|
|
115
|
+
align-items: center;
|
|
116
|
+
margin-bottom: 10px;
|
|
117
|
+
}
|
|
118
|
+
::ng-deep h3:not(.no-margin) {
|
|
119
|
+
margin-top: 25px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.collapseable-wrapper {
|
|
124
|
+
padding: 10px;
|
|
125
|
+
border-bottom: 1px solid #DCE4EA;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
::ng-deep .input-date-window {
|
|
129
|
+
z-index: 9001!important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.initial {
|
|
133
|
+
position: initial !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.center {
|
|
137
|
+
justify-content: center;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
File without changes
|