@colijnit/corecomponents_v12 255.1.12 → 255.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-corecomponents_v12.umd.js +357 -4
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/calendar/calendar-template.component.js +6 -4
- package/esm2015/lib/components/hour-scheduling/components/hour-scheduling-test-object/hour-scheduling-test-object.component.js +2 -2
- package/esm2015/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.component.js +55 -0
- package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.js +323 -0
- package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.module.js +25 -0
- package/esm2015/public-api.js +5 -1
- package/fesm2015/colijnit-corecomponents_v12.js +403 -5
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/hour-scheduling/components/hour-scheduling-test-object/style/_layout.scss +2 -0
- package/lib/components/hour-scheduling/components/hour-scheduling-test-object/style/_theme.scss +2 -2
- package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.component.d.ts +10 -0
- package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/style/_layout.scss +4 -0
- package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/style/_material-definition.scss +0 -0
- package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/style/_theme.scss +4 -0
- package/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/style/material.scss +4 -0
- package/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.d.ts +78 -0
- package/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.module.d.ts +2 -0
- package/lib/components/hour-scheduling-expandable/style/_layout.scss +114 -0
- package/lib/components/hour-scheduling-expandable/style/_material-definition.scss +0 -0
- package/lib/components/hour-scheduling-expandable/style/_theme.scss +4 -0
- package/lib/components/hour-scheduling-expandable/style/material.scss +4 -0
- package/lib/components/input-checkbox/style/_material-definition.scss +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
- package/colijnit-corecomponents_v12-255.1.11.tgz +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
export declare class HourSchedulingExpandableTemplateComponent {
|
|
3
|
+
objectTemplate: TemplateRef<any>;
|
|
4
|
+
objects: Object[];
|
|
5
|
+
onDragStartCustom: Function;
|
|
6
|
+
onResizeStart: Function;
|
|
7
|
+
onSelectBlock: Function;
|
|
8
|
+
showClass(): boolean;
|
|
9
|
+
onExpandableDragStart(event: DragEvent, obj: Object, onDragStartCustom: Function): void;
|
|
10
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
interface SchedulingObject {
|
|
3
|
+
start: Date;
|
|
4
|
+
end: Date;
|
|
5
|
+
title?: string;
|
|
6
|
+
subTitle?: string;
|
|
7
|
+
height?: number;
|
|
8
|
+
top?: number;
|
|
9
|
+
id: number | string;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
showTopResizer?: boolean;
|
|
12
|
+
showBottomResizer?: boolean;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export declare class HourSchedulingExpandableComponent implements OnInit {
|
|
16
|
+
private cdRef;
|
|
17
|
+
private eRef;
|
|
18
|
+
hourLabels: string[];
|
|
19
|
+
scheduledObjects: SchedulingObject[];
|
|
20
|
+
private resizing;
|
|
21
|
+
private resizeDirection;
|
|
22
|
+
private initialY;
|
|
23
|
+
private initialHeight;
|
|
24
|
+
private initialTop;
|
|
25
|
+
private currentResizingObject;
|
|
26
|
+
private currentDraggingObject;
|
|
27
|
+
private MIN_HEIGHT;
|
|
28
|
+
private _schedule;
|
|
29
|
+
set schedule(value: Object);
|
|
30
|
+
get schedule(): Object;
|
|
31
|
+
startTimeProp: string;
|
|
32
|
+
endTimeProp: string;
|
|
33
|
+
objectsProp: string;
|
|
34
|
+
childProp: string;
|
|
35
|
+
customTemplate: TemplateRef<any>;
|
|
36
|
+
idProp: string;
|
|
37
|
+
timeChangeEvent: EventEmitter<Object>;
|
|
38
|
+
newObjectPlanEvent: EventEmitter<{
|
|
39
|
+
currentHour: string;
|
|
40
|
+
data: string;
|
|
41
|
+
}>;
|
|
42
|
+
moveBetweenCalendarsEvent: EventEmitter<{
|
|
43
|
+
hour: string;
|
|
44
|
+
data: SchedulingObject;
|
|
45
|
+
}>;
|
|
46
|
+
showClass: boolean;
|
|
47
|
+
onResize(event: {
|
|
48
|
+
target: {
|
|
49
|
+
innerWidth: any;
|
|
50
|
+
};
|
|
51
|
+
}): void;
|
|
52
|
+
clickOut(event: {
|
|
53
|
+
target: any;
|
|
54
|
+
}): void;
|
|
55
|
+
constructor(cdRef: ChangeDetectorRef, eRef: ElementRef);
|
|
56
|
+
ngOnInit(): void;
|
|
57
|
+
private _calculateSchedulingObjectProperties;
|
|
58
|
+
private _findNextObject;
|
|
59
|
+
private _findPreviousObject;
|
|
60
|
+
renderObjects(): void;
|
|
61
|
+
onSelectBlock(obj: SchedulingObject): void;
|
|
62
|
+
onDragStartCustom(obj: SchedulingObject): void;
|
|
63
|
+
handleDrop(dragEvent: DragEvent, hour: string): void;
|
|
64
|
+
allowDrop(event: DragEvent, hour: string): boolean;
|
|
65
|
+
onResizeStart(event: MouseEvent, obj: SchedulingObject, direction: 'top' | 'bottom'): void;
|
|
66
|
+
onResizing(event: MouseEvent): void;
|
|
67
|
+
onResizeEnd(event: MouseEvent): void;
|
|
68
|
+
timeDifference(date1: Date, date2: Date): number;
|
|
69
|
+
generateTimeBlocks(): void;
|
|
70
|
+
dateToUnixEpoch(date: Date): number;
|
|
71
|
+
addMinutes(date: Date, minutes: number): Date;
|
|
72
|
+
tryParseJSONObject(jsonString: string): any;
|
|
73
|
+
addHalfHour(hour: string): string;
|
|
74
|
+
convertTZ(date: any, tzString: any): Date;
|
|
75
|
+
convertDateToEuropean(date: Date): Date;
|
|
76
|
+
handleDeselectAll(): void;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
@include export-module('cc-hour-scheduling-expandable-layout') {
|
|
4
|
+
.co-hour-scheduling-expandable {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
padding: 30px 0;
|
|
8
|
+
background: #FFF;
|
|
9
|
+
|
|
10
|
+
.custom-scheduled-object {
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: calc(100% - 55px);
|
|
13
|
+
left: 55px;
|
|
14
|
+
top: var(--top);
|
|
15
|
+
height: var(--height);
|
|
16
|
+
cursor: grab;
|
|
17
|
+
background: #F5F5FC;
|
|
18
|
+
border: 1px solid #F5F5FC;
|
|
19
|
+
transition: background-color 0.3s ease;
|
|
20
|
+
padding: 0;
|
|
21
|
+
.top-resizer, .bottom-resizer {
|
|
22
|
+
height: 5px;
|
|
23
|
+
position: absolute;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.top-resizer {
|
|
28
|
+
cursor: n-resize;
|
|
29
|
+
top: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.bottom-resizer {
|
|
33
|
+
cursor: s-resize;
|
|
34
|
+
bottom: 0;
|
|
35
|
+
}
|
|
36
|
+
&:hover {
|
|
37
|
+
background-color: rgba(26, 115, 232, 0.2);
|
|
38
|
+
}
|
|
39
|
+
&.selected {
|
|
40
|
+
background-color: rgba(26, 115, 232, 0.2);
|
|
41
|
+
border: 1px solid #1A73E8;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.wrapper {
|
|
47
|
+
position: relative;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.scheduled-objects {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
height: 100%;
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
.time-block {
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
align-items: flex-start;
|
|
60
|
+
background-color: #ffffff;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.hour-label {
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
width: 60px;
|
|
66
|
+
padding: 0 10px;
|
|
67
|
+
position: relative;
|
|
68
|
+
top: -10px;
|
|
69
|
+
}
|
|
70
|
+
.drag-over {
|
|
71
|
+
background-color: rgba(26, 115, 232, 0.2);
|
|
72
|
+
transition: background-color 0.3s ease;
|
|
73
|
+
}
|
|
74
|
+
.object-display {
|
|
75
|
+
display: flex;
|
|
76
|
+
width: 100%;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
.object-half {
|
|
79
|
+
padding: 5px;
|
|
80
|
+
min-height: 30px;
|
|
81
|
+
border-style: solid;
|
|
82
|
+
border-color: #F5F5FC;
|
|
83
|
+
border-width: 1px 0 1px 0;
|
|
84
|
+
transition: background-color 0.3s ease;
|
|
85
|
+
&.has-objects {
|
|
86
|
+
cursor: grab;
|
|
87
|
+
background: #F5F5FC;
|
|
88
|
+
border: 1px solid #F5F5FC;
|
|
89
|
+
&:hover {
|
|
90
|
+
background-color: rgba(26, 115, 232, 0.2);
|
|
91
|
+
}
|
|
92
|
+
&.active {
|
|
93
|
+
background-color: rgba(26, 115, 232, 0.2);
|
|
94
|
+
border: 1px solid #1A73E8;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.scheduled-object {
|
|
101
|
+
padding: 0.5em;
|
|
102
|
+
background-color: #4CAF50;
|
|
103
|
+
color: white;
|
|
104
|
+
border-radius: 3px;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
|
|
109
|
+
.title {
|
|
110
|
+
font-weight: bold;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
File without changes
|
|
@@ -5,8 +5,8 @@ $cc-input-checkbox-margin: 0 10px 0 0 !default;
|
|
|
5
5
|
$cc-input-checkbox-border-radius: $cc-checkbox-border-radius !default;
|
|
6
6
|
$cc-input-checkbox-border-style: solid !default;
|
|
7
7
|
$cc-input-checkbox-border-width: 2px !default;
|
|
8
|
-
$cc-input-checkbox-border-color:
|
|
9
|
-
$cc-input-checkbox-background-color:
|
|
8
|
+
$cc-input-checkbox-border-color: #EAEAF5 !default;
|
|
9
|
+
$cc-input-checkbox-background-color: #EAEAF5 !default;
|
|
10
10
|
$cc-input-checkbox-check-mark-color: $cc-checkbox-check-color !default;
|
|
11
11
|
$cc-input-checkbox-check-mark-thickness: 2px !default;
|
|
12
12
|
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -127,4 +127,8 @@ export * from './lib/service/base-module.service';
|
|
|
127
127
|
export * from './lib/translation/core-components-translation.module';
|
|
128
128
|
export * from './lib/translation/core-components-translation.service';
|
|
129
129
|
export * from './lib/components/hour-scheduling/hour-scheduling.component';
|
|
130
|
+
export * from './lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component';
|
|
131
|
+
export * from './lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.component';
|
|
130
132
|
export * from './lib/components/hour-scheduling/hour-scheduling.module';
|
|
133
|
+
export * from './lib/components/hour-scheduling-expandable/hour-scheduling-expandable.module';
|
|
134
|
+
export * from './lib/components/hour-scheduling-expandable/hour-scheduling-expandable.module';
|
|
Binary file
|