@colijnit/corecomponents_v12 258.1.3 → 258.1.5

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.
@@ -1,12 +1,6 @@
1
1
  import { OnInit, ChangeDetectorRef, TemplateRef, EventEmitter, NgZone } from '@angular/core';
2
2
  import { DatePipe } from '@angular/common';
3
- interface SchedulingObject {
4
- start: number;
5
- end: number;
6
- title?: string;
7
- subTitle?: string;
8
- [key: string]: any;
9
- }
3
+ import { SchedulingObject } from './model/enum/scheduling-object.interface';
10
4
  export declare class HourSchedulingComponent implements OnInit {
11
5
  private cdRef;
12
6
  private datePipe;
@@ -52,4 +46,3 @@ export declare class HourSchedulingComponent implements OnInit {
52
46
  onObjectDisplayClick(hour: string, half: 'firstHalf' | 'secondHalf'): void;
53
47
  tryParseJSONObject(jsonString: string): any;
54
48
  }
55
- export {};
@@ -0,0 +1,10 @@
1
+ export interface SchedulingObject {
2
+ start: number;
3
+ end: number;
4
+ title?: string;
5
+ subTitle?: string;
6
+ selected?: boolean;
7
+ height?: number;
8
+ top?: number;
9
+ [key: string]: any;
10
+ }
@@ -1,12 +1,23 @@
1
1
  import { TemplateRef } from "@angular/core";
2
+ import { SchedulingObject } from '../../../hour-scheduling/model/enum/scheduling-object.interface';
2
3
  export declare class HourSchedulingExpandableTemplateComponent {
4
+ private _objects;
5
+ layouts: {
6
+ leftPercent: number;
7
+ widthPercent: number;
8
+ }[];
3
9
  objectTemplate: TemplateRef<any>;
4
- objects: Object[];
10
+ set objects(objects: SchedulingObject[]);
11
+ get objects(): SchedulingObject[];
5
12
  onDragStartCustom: Function;
6
13
  onResizeStart: Function;
7
14
  onSelectBlock: Function;
15
+ startTimeProp: string;
16
+ endTimeProp: string;
8
17
  showClass(): boolean;
9
18
  onExpandableDragStart(event: DragEvent, obj: Object, onDragStartCustom: Function): void;
10
- leftForObject(index: number, objects: Object[]): number;
11
- widthForObject(index: number, objects: Object[]): number;
19
+ calculateLeftAndWidthOfObjects(): {
20
+ leftPercent: number;
21
+ widthPercent: number;
22
+ }[];
12
23
  }
@@ -9,10 +9,7 @@
9
9
 
10
10
  .custom-scheduled-object {
11
11
  position: absolute;
12
- &:first-child {
13
- left: calc(55px + var(--left));
14
- }
15
- left: var(--left);
12
+ left: calc(55px + var(--left));
16
13
  width: calc(var(--width) - 55px);
17
14
 
18
15
  top: var(--top);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "258.1.3",
3
+ "version": "258.1.5",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {
package/public-api.d.ts CHANGED
@@ -132,3 +132,4 @@ export * from './lib/components/hour-scheduling-expandable/components/hour-sched
132
132
  export * from './lib/components/hour-scheduling/hour-scheduling.module';
133
133
  export * from './lib/components/hour-scheduling-expandable/hour-scheduling-expandable.module';
134
134
  export * from './lib/components/hour-scheduling-expandable/hour-scheduling-expandable.module';
135
+ export * from './lib/components/hour-scheduling/model/enum/scheduling-object.interface';