@colijnit/corecomponents_v12 255.1.14 → 255.1.15
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 +1 -11
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/hour-scheduling-expandable/components/hour-scheduling-expandable-template/hour-scheduling-expandable-template.component.js +3 -3
- package/esm2015/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.js +1 -10
- package/fesm2015/colijnit-corecomponents_v12.js +2 -11
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -14364,18 +14364,8 @@
|
|
|
14364
14364
|
if (this.schedule) {
|
|
14365
14365
|
this.renderObjects();
|
|
14366
14366
|
}
|
|
14367
|
-
this._calculateSchedulingObjectProperties();
|
|
14368
14367
|
};
|
|
14369
14368
|
// Calculate properties for each scheduled object to determine resizer visibility
|
|
14370
|
-
HourSchedulingExpandableComponent.prototype._calculateSchedulingObjectProperties = function () {
|
|
14371
|
-
var _this = this;
|
|
14372
|
-
var scheduleStart = this.convertDateToEuropean(this.schedule[this.childProp][this.startTimeProp]);
|
|
14373
|
-
var scheduleEnd = this.convertDateToEuropean(this.schedule[this.childProp][this.endTimeProp]);
|
|
14374
|
-
this.scheduledObjects.forEach(function (obj) {
|
|
14375
|
-
obj.showTopResizer = _this.timeDifference(scheduleStart, obj.start) > 0; // Show top resizer if the start time differs
|
|
14376
|
-
obj.showBottomResizer = _this.timeDifference(scheduleEnd, obj.end) > 0; // Show bottom resizer if the end time differs
|
|
14377
|
-
});
|
|
14378
|
-
};
|
|
14379
14369
|
// Find the next object in the scheduledObjects list
|
|
14380
14370
|
HourSchedulingExpandableComponent.prototype._findNextObject = function (currentObject) {
|
|
14381
14371
|
var currentIndex = this.scheduledObjects.indexOf(currentObject);
|
|
@@ -14634,7 +14624,7 @@
|
|
|
14634
14624
|
HourSchedulingExpandableTemplateComponent.decorators = [
|
|
14635
14625
|
{ type: i0.Component, args: [{
|
|
14636
14626
|
selector: "co-hour-scheduling-expandable-template",
|
|
14637
|
-
template: "\n <div\n *ngFor=\"let obj of objects\"\n [class]=\"'custom-scheduled-object'\"\n [class.selected]=\"obj['selected']\"\n [draggable]=\"!obj['selected']\"\n [style.--height]=\"obj['height'] + 'px'\"\n [style.--top]=\"obj['top'] + 'px'\"\n (click)=\"onSelectBlock(obj)\"\n (dragstart)=\"onExpandableDragStart($event, obj, onDragStartCustom(obj) )\">\n\n <div\n *ngIf=\"obj['selected']
|
|
14627
|
+
template: "\n <div\n *ngFor=\"let obj of objects\"\n [class]=\"'custom-scheduled-object'\"\n [class.selected]=\"obj['selected']\"\n [draggable]=\"!obj['selected']\"\n [style.--height]=\"obj['height'] + 'px'\"\n [style.--top]=\"obj['top'] + 'px'\"\n (click)=\"onSelectBlock(obj)\"\n (dragstart)=\"onExpandableDragStart($event, obj, onDragStartCustom(obj) )\">\n\n <div\n *ngIf=\"obj['selected']\"\n class=\"top-resizer\"\n (mousedown)=\"onResizeStart($event, obj, 'top')\"></div>\n <ng-template\n [ngTemplateOutlet]=\"objectTemplate\"\n [ngTemplateOutletContext]=\"{\n object: obj\n }\"\n >\n </ng-template>\n <div *ngIf=\"obj['selected']\"\n class=\"bottom-resizer\"\n (mousedown)=\"onResizeStart($event, obj, 'bottom')\"></div>\n </div>\n ",
|
|
14638
14628
|
encapsulation: i0.ViewEncapsulation.None
|
|
14639
14629
|
},] }
|
|
14640
14630
|
];
|