@colijnit/corecomponents_v12 255.1.10 → 255.1.11

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.
@@ -11,12 +11,12 @@ export declare class HourSchedulingComponent implements OnInit {
11
11
  private cdRef;
12
12
  private datePipe;
13
13
  showClass: boolean;
14
- startTime: number;
15
- endTime: number;
16
- hours: string[];
14
+ hourLabels: string[];
17
15
  scheduledObjects: {
18
16
  [hour: string]: SchedulingObject[];
19
17
  };
18
+ activeHour: string | null;
19
+ activeHalfHour: string | null;
20
20
  private draggedObject;
21
21
  schedule: any;
22
22
  startTimeProp: string;
@@ -27,16 +27,28 @@ export declare class HourSchedulingComponent implements OnInit {
27
27
  customTemplateUsed: boolean;
28
28
  idProp: string;
29
29
  timeChangeEvent: EventEmitter<Object>;
30
+ newObjectPlanEvent: EventEmitter<{
31
+ currentHour: string;
32
+ data: string;
33
+ }>;
30
34
  constructor(cdRef: ChangeDetectorRef, datePipe: DatePipe);
31
35
  ngOnInit(): void;
36
+ ngOnDestroy(): void;
32
37
  generateTimeBlocks(): void;
33
- private _getObjectsForHour;
34
- formatHour(hour: number): string;
38
+ generateScheduledObjects(): void;
39
+ private _getObjectsForHourAndMinutes;
35
40
  onDragStart(event: DragEvent, obj: any): void;
36
41
  onCustomDragStart(event: DragEvent, obj: SchedulingObject): void;
37
42
  onDragOver(event: DragEvent): void;
43
+ onDragLeave(event: DragEvent): void;
38
44
  onDrop(event: DragEvent, hour: string): void;
39
- convertToHourNotation(date: Date): number;
40
- createDate(hours: number): Date;
45
+ convertToHourNotation(date: Date): string;
46
+ createDate(hours: number, minutes?: number): Date;
47
+ dateToUnixEpoch(date: Date): number;
48
+ formatHour(hour: number, minutes?: number): string;
49
+ addMinutes(hour: string): string;
50
+ onDocumentClick(event: Event): void;
51
+ onObjectDisplayClick(hour: string, half: 'firstHalf' | 'secondHalf'): void;
52
+ tryParseJSONObject(jsonString: string): any;
41
53
  }
42
54
  export {};
@@ -4,31 +4,48 @@
4
4
  .co-hour-scheduling {
5
5
  display: flex;
6
6
  flex-direction: column;
7
-
7
+ padding: 30px 0;
8
+ background: #FFF;
8
9
  .time-block {
9
10
  display: flex;
10
11
  justify-content: space-between;
11
- align-items: center;
12
- border: 1px solid #ccc;
13
- background-color: #f0f0f0;
14
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
15
- padding: 0.5em;
16
- min-height: 2em;
12
+ align-items: flex-start;
13
+ background-color: #ffffff;
17
14
  }
18
15
 
19
16
  .hour-label {
20
17
  font-weight: bold;
21
- width: 4em;
22
- padding: 0.5em;
18
+ width: 60px;
19
+ padding: 0 10px;
20
+ position: relative;
21
+ top: -10px;
22
+ }
23
+ .drag-over {
24
+ background-color: rgba(26, 115, 232, 0.2);
23
25
  }
24
-
25
26
  .object-display {
26
27
  display: flex;
27
28
  width: 100%;
28
29
  flex-direction: column;
29
- border: 1px solid rgba($cc-color-action-accent, 0.3);
30
- padding: 0.5em;
31
- min-height: 2em;
30
+ .object-half {
31
+ padding: 5px;
32
+ min-height: 30px;
33
+ border-style: solid;
34
+ border-color: #F5F5FC;
35
+ border-width: 1px 0 1px 0;
36
+ &.has-objects {
37
+ cursor: grab;
38
+ background: #F5F5FC;
39
+ border: 1px solid #F5F5FC;
40
+ &:hover {
41
+ background-color: rgba(26, 115, 232, 0.2);
42
+ }
43
+ &.active {
44
+ background-color: rgba(26, 115, 232, 0.2);
45
+ border: 1px solid #1A73E8;
46
+ }
47
+ }
48
+ }
32
49
  }
33
50
 
34
51
  .scheduled-object {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "255.1.10",
3
+ "version": "255.1.11",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {