@colijnit/corecomponents_v12 255.1.2 → 255.1.4
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 +128 -0
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +1 -0
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +2 -1
- package/esm2015/lib/components/hour-scheduling/components/hour-scheduling-test-object/hour-scheduling-test-object.component.js +22 -0
- package/esm2015/lib/components/hour-scheduling/hour-scheduling.component.js +104 -0
- package/esm2015/lib/components/hour-scheduling/hour-scheduling.module.js +22 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +143 -1
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/hour-scheduling/components/hour-scheduling-test-object/hour-scheduling-test-object.component.d.ts +5 -0
- package/lib/components/hour-scheduling/components/hour-scheduling-test-object/style/_layout.scss +13 -0
- package/lib/components/hour-scheduling/components/hour-scheduling-test-object/style/_material-definition.scss +0 -0
- package/lib/components/hour-scheduling/components/hour-scheduling-test-object/style/_theme.scss +4 -0
- package/lib/components/hour-scheduling/components/hour-scheduling-test-object/style/material.scss +4 -0
- package/lib/components/hour-scheduling/hour-scheduling.component.d.ts +31 -0
- package/lib/components/hour-scheduling/hour-scheduling.module.d.ts +2 -0
- package/lib/components/hour-scheduling/style/_layout.scss +49 -0
- package/lib/components/hour-scheduling/style/_material-definition.scss +0 -0
- package/lib/components/hour-scheduling/style/_theme.scss +4 -0
- package/lib/components/hour-scheduling/style/material.scss +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
package/lib/components/hour-scheduling/components/hour-scheduling-test-object/style/_layout.scss
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@include export-module('cc-hour-scheduling-test-object-layout') {
|
|
2
|
+
.co-hour-scheduling-test-object {
|
|
3
|
+
.object-content {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 4px; /* Small gap between title and subTitle */
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.title {
|
|
10
|
+
font-weight: bold; /* Make the title bold */
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, TemplateRef } from '@angular/core';
|
|
2
|
+
interface SchedulingObject {
|
|
3
|
+
start: number;
|
|
4
|
+
end: number;
|
|
5
|
+
title?: string;
|
|
6
|
+
subTitle?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class HourSchedulingComponent implements OnInit {
|
|
9
|
+
private cdRef;
|
|
10
|
+
showClass: boolean;
|
|
11
|
+
schedule: any;
|
|
12
|
+
startTimeProp: string;
|
|
13
|
+
endTimeProp: string;
|
|
14
|
+
objectsProp: string;
|
|
15
|
+
customTemplate: TemplateRef<any>;
|
|
16
|
+
customTemplateUsed: boolean;
|
|
17
|
+
hours: string[];
|
|
18
|
+
scheduledObjects: {
|
|
19
|
+
[hour: string]: SchedulingObject[];
|
|
20
|
+
};
|
|
21
|
+
private draggedObject;
|
|
22
|
+
constructor(cdRef: ChangeDetectorRef);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
private generateTimeBlocks;
|
|
25
|
+
private getObjectsForHour;
|
|
26
|
+
formatHour(hour: number): string;
|
|
27
|
+
onDragStart(event: DragEvent, obj: SchedulingObject): void;
|
|
28
|
+
onDragOver(event: DragEvent): void;
|
|
29
|
+
onDrop(event: DragEvent, hour: string): void;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@import "../components/hour-scheduling-test-object/style/material.scss";
|
|
2
|
+
|
|
3
|
+
@include export-module('cc-hour-scheduling-layout') {
|
|
4
|
+
.co-hour-scheduling {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
|
|
8
|
+
.time-block {
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
align-items: center;
|
|
12
|
+
padding: 10px;
|
|
13
|
+
border: 1px solid #ccc;
|
|
14
|
+
margin-bottom: 10px;
|
|
15
|
+
background-color: #f0f0f0;
|
|
16
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.hour-label {
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
margin-right: 10px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.object-display {
|
|
25
|
+
flex-grow: 1;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 10px;
|
|
29
|
+
min-height: 100px;
|
|
30
|
+
border: 1px dashed #999;
|
|
31
|
+
padding: 10px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.scheduled-object {
|
|
35
|
+
padding: 5px 10px;
|
|
36
|
+
background-color: #4CAF50;
|
|
37
|
+
color: white;
|
|
38
|
+
border-radius: 3px;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
gap: 0.5em;
|
|
43
|
+
|
|
44
|
+
.title {
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -126,3 +126,5 @@ export * from './lib/service/base-module-screen-config.service';
|
|
|
126
126
|
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
|
+
export * from './lib/components/hour-scheduling/hour-scheduling.component';
|
|
130
|
+
export * from './lib/components/hour-scheduling/hour-scheduling.module';
|