@colijnit/corecomponents_v12 255.1.13 → 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 +15 -7
- 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/hour-scheduling-expandable.component.js +16 -9
- package/fesm2015/colijnit-corecomponents_v12.js +15 -7
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.d.ts +5 -3
- package/lib/components/hour-scheduling-expandable/style/_layout.scss +17 -6
- package/lib/components/input-checkbox/style/_material-definition.scss +2 -2
- package/package.json +1 -1
|
@@ -14323,9 +14323,8 @@
|
|
|
14323
14323
|
};
|
|
14324
14324
|
|
|
14325
14325
|
var HourSchedulingExpandableComponent = /** @class */ (function () {
|
|
14326
|
-
function HourSchedulingExpandableComponent(cdRef,
|
|
14326
|
+
function HourSchedulingExpandableComponent(cdRef, eRef) {
|
|
14327
14327
|
this.cdRef = cdRef;
|
|
14328
|
-
this.datePipe = datePipe;
|
|
14329
14328
|
this.eRef = eRef;
|
|
14330
14329
|
this.hourLabels = [];
|
|
14331
14330
|
this.scheduledObjects = [];
|
|
@@ -14336,6 +14335,7 @@
|
|
|
14336
14335
|
this._schedule = {};
|
|
14337
14336
|
this.timeChangeEvent = new i0.EventEmitter();
|
|
14338
14337
|
this.newObjectPlanEvent = new i0.EventEmitter();
|
|
14338
|
+
this.moveBetweenCalendarsEvent = new i0.EventEmitter();
|
|
14339
14339
|
this.showClass = true;
|
|
14340
14340
|
}
|
|
14341
14341
|
Object.defineProperty(HourSchedulingExpandableComponent.prototype, "schedule", {
|
|
@@ -14416,13 +14416,19 @@
|
|
|
14416
14416
|
});
|
|
14417
14417
|
}
|
|
14418
14418
|
this.scheduledObjects = schedulingObjects_1;
|
|
14419
|
+
this.cdRef.markForCheck();
|
|
14420
|
+
this.cdRef.detectChanges();
|
|
14419
14421
|
}
|
|
14420
14422
|
};
|
|
14421
14423
|
HourSchedulingExpandableComponent.prototype.onSelectBlock = function (obj) {
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14425
|
-
|
|
14424
|
+
obj.selected = !obj.selected;
|
|
14425
|
+
if (obj.selected) {
|
|
14426
|
+
this.scheduledObjects.forEach(function (scheduledObject) {
|
|
14427
|
+
if (scheduledObject.selected && scheduledObject !== obj) {
|
|
14428
|
+
scheduledObject.selected = false;
|
|
14429
|
+
}
|
|
14430
|
+
});
|
|
14431
|
+
}
|
|
14426
14432
|
this.currentResizingObject = obj;
|
|
14427
14433
|
};
|
|
14428
14434
|
HourSchedulingExpandableComponent.prototype.onDragStartCustom = function (obj) {
|
|
@@ -14452,7 +14458,9 @@
|
|
|
14452
14458
|
var parsed = this.tryParseJSONObject(dragEvent.dataTransfer.getData("text"));
|
|
14453
14459
|
if (!parsed) {
|
|
14454
14460
|
this.newObjectPlanEvent.emit({ currentHour: hour, data: parsed.toString() });
|
|
14461
|
+
return;
|
|
14455
14462
|
}
|
|
14463
|
+
this.moveBetweenCalendarsEvent.emit({ hour: hour, data: parsed });
|
|
14456
14464
|
}
|
|
14457
14465
|
};
|
|
14458
14466
|
HourSchedulingExpandableComponent.prototype.allowDrop = function (event, hour) {
|
|
@@ -14592,7 +14600,6 @@
|
|
|
14592
14600
|
];
|
|
14593
14601
|
HourSchedulingExpandableComponent.ctorParameters = function () { return [
|
|
14594
14602
|
{ type: i0.ChangeDetectorRef },
|
|
14595
|
-
{ type: common.DatePipe },
|
|
14596
14603
|
{ type: i0.ElementRef }
|
|
14597
14604
|
]; };
|
|
14598
14605
|
HourSchedulingExpandableComponent.propDecorators = {
|
|
@@ -14605,6 +14612,7 @@
|
|
|
14605
14612
|
idProp: [{ type: i0.Input }],
|
|
14606
14613
|
timeChangeEvent: [{ type: i0.Output }],
|
|
14607
14614
|
newObjectPlanEvent: [{ type: i0.Output }],
|
|
14615
|
+
moveBetweenCalendarsEvent: [{ type: i0.Output }],
|
|
14608
14616
|
showClass: [{ type: i0.HostBinding, args: ['class.co-hour-scheduling-expandable',] }],
|
|
14609
14617
|
onResize: [{ type: i0.HostListener, args: ['window:resize', ['$event'],] }],
|
|
14610
14618
|
clickOut: [{ type: i0.HostListener, args: ['document:click', ['$event'],] }]
|