@colijnit/corecomponents_v12 261.20.3 → 261.20.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.
|
@@ -12430,6 +12430,7 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
12430
12430
|
rowDisabledFn;
|
|
12431
12431
|
showColumnSort = false;
|
|
12432
12432
|
showRowButtons = false;
|
|
12433
|
+
resetPageOnDataChange = true;
|
|
12433
12434
|
/**
|
|
12434
12435
|
* Promise function, if provided should return boolean
|
|
12435
12436
|
*/
|
|
@@ -12479,7 +12480,9 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
12479
12480
|
this.changeDetection = changeDetection;
|
|
12480
12481
|
this._formMaster = _formMaster;
|
|
12481
12482
|
this.dataChanged.subscribe(() => {
|
|
12482
|
-
this.
|
|
12483
|
+
if (this.resetPageOnDataChange) {
|
|
12484
|
+
this.currentPage = 1;
|
|
12485
|
+
}
|
|
12483
12486
|
});
|
|
12484
12487
|
}
|
|
12485
12488
|
handleClickOutsideRow() {
|
|
@@ -12961,7 +12964,7 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
12961
12964
|
this.rowToEdit = undefined;
|
|
12962
12965
|
}
|
|
12963
12966
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridComponent, deps: [{ token: IconCacheService }, { token: i0.ChangeDetectorRef }, { token: FormMasterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12964
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: SimpleGridComponent, isStandalone: false, selector: "co-simple-grid", inputs: { showAdd: "showAdd", showDelete: "showDelete", deselectAllowed: "deselectAllowed", editOnCellClick: "editOnCellClick", rightToolbar: "rightToolbar", showGridSettings: "showGridSettings", rowsPerPage: "rowsPerPage", rowDisabledFn: "rowDisabledFn", showColumnSort: "showColumnSort", showRowButtons: "showRowButtons", canRowBeEdittedFn: "canRowBeEdittedFn" }, host: { listeners: { "keydown": "handleKeyDown($event)" }, properties: { "class.co-simple-grid": "this.showClass" } }, providers: [FormMasterService], viewQueries: [{ propertyName: "headerCells", predicate: ["headerCell"], descendants: true }, { propertyName: "rowElements", predicate: ["rowElement"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
12967
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: SimpleGridComponent, isStandalone: false, selector: "co-simple-grid", inputs: { showAdd: "showAdd", showDelete: "showDelete", deselectAllowed: "deselectAllowed", editOnCellClick: "editOnCellClick", rightToolbar: "rightToolbar", showGridSettings: "showGridSettings", rowsPerPage: "rowsPerPage", rowDisabledFn: "rowDisabledFn", showColumnSort: "showColumnSort", showRowButtons: "showRowButtons", resetPageOnDataChange: "resetPageOnDataChange", canRowBeEdittedFn: "canRowBeEdittedFn" }, host: { listeners: { "keydown": "handleKeyDown($event)" }, properties: { "class.co-simple-grid": "this.showClass" } }, providers: [FormMasterService], viewQueries: [{ propertyName: "headerCells", predicate: ["headerCell"], descendants: true }, { propertyName: "rowElements", predicate: ["rowElement"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
12965
12968
|
@if (showToolbar) {
|
|
12966
12969
|
<co-grid-toolbar
|
|
12967
12970
|
[class.right]="rightToolbar"
|
|
@@ -13399,6 +13402,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
13399
13402
|
type: Input
|
|
13400
13403
|
}], showRowButtons: [{
|
|
13401
13404
|
type: Input
|
|
13405
|
+
}], resetPageOnDataChange: [{
|
|
13406
|
+
type: Input
|
|
13402
13407
|
}], canRowBeEdittedFn: [{
|
|
13403
13408
|
type: Input
|
|
13404
13409
|
}], showClass: [{
|
|
@@ -18657,7 +18662,7 @@ class ScreenConfigurationDirective {
|
|
|
18657
18662
|
this._setHostVisible(myCfgObj.immediatelyVisible());
|
|
18658
18663
|
if (!this.screenConfigNativeElement) {
|
|
18659
18664
|
this.hostComponent.required = this.hostComponent.required || myCfgObj.isRequired();
|
|
18660
|
-
this.hostComponent.readonly = this.
|
|
18665
|
+
this.hostComponent.readonly = this._moduleInReadonlyMode() || myCfgObj.isReadonly();
|
|
18661
18666
|
this.hostComponent.decimals = myCfgObj.scale;
|
|
18662
18667
|
this.hostComponent.maxLength = myCfgObj.maxLength;
|
|
18663
18668
|
this.hostComponent.defaultValue = myCfgObj.defaultValue;
|
|
@@ -19335,11 +19340,13 @@ class HourSchedulingExpandableComponent {
|
|
|
19335
19340
|
currentDraggingObject = null;
|
|
19336
19341
|
MIN_HEIGHT = 30;
|
|
19337
19342
|
_schedule = {};
|
|
19343
|
+
_onMouseMove = (e) => this.onResizing(e);
|
|
19344
|
+
_onMouseUp = (e) => this.onResizeEnd(e);
|
|
19338
19345
|
set schedule(value) {
|
|
19339
|
-
|
|
19346
|
+
this._schedule = value;
|
|
19347
|
+
if (this._schedule) {
|
|
19340
19348
|
this.renderObjects();
|
|
19341
19349
|
}
|
|
19342
|
-
this._schedule = value;
|
|
19343
19350
|
}
|
|
19344
19351
|
get schedule() {
|
|
19345
19352
|
return this._schedule;
|
|
@@ -19476,14 +19483,10 @@ class HourSchedulingExpandableComponent {
|
|
|
19476
19483
|
if (this.currentDraggingObject) {
|
|
19477
19484
|
let newStartDate = this.convertDateToEuropean(this.currentDraggingObject.start);
|
|
19478
19485
|
let hourSplit = hour.split(":");
|
|
19479
|
-
newStartDate.setHours(parseInt(hourSplit[0]));
|
|
19480
|
-
newStartDate.
|
|
19481
|
-
|
|
19482
|
-
|
|
19483
|
-
}
|
|
19484
|
-
else {
|
|
19485
|
-
return true;
|
|
19486
|
-
}
|
|
19486
|
+
newStartDate.setHours(parseInt(hourSplit[0], 10));
|
|
19487
|
+
newStartDate.setMinutes(parseInt(hourSplit[1], 10));
|
|
19488
|
+
const t = newStartDate.getTime();
|
|
19489
|
+
return !this.scheduledObjects.some(o => o.start?.getTime() === t);
|
|
19487
19490
|
}
|
|
19488
19491
|
}
|
|
19489
19492
|
handleDragLeave(event) {
|
|
@@ -19501,8 +19504,8 @@ class HourSchedulingExpandableComponent {
|
|
|
19501
19504
|
this.initialHeight = obj.height || 0;
|
|
19502
19505
|
this.initialTop = obj.top || 0;
|
|
19503
19506
|
// Listen to mousemove and mouseup events globally
|
|
19504
|
-
document.addEventListener(
|
|
19505
|
-
document.addEventListener(
|
|
19507
|
+
document.addEventListener("mousemove", this._onMouseMove);
|
|
19508
|
+
document.addEventListener("mouseup", this._onMouseUp);
|
|
19506
19509
|
}
|
|
19507
19510
|
// Handle resizing with snapping to 30px increments and minimum height restriction
|
|
19508
19511
|
onResizing(event) {
|
|
@@ -19547,9 +19550,8 @@ class HourSchedulingExpandableComponent {
|
|
|
19547
19550
|
this.currentResizingObject.selected = false;
|
|
19548
19551
|
this.currentResizingObject = null;
|
|
19549
19552
|
}
|
|
19550
|
-
|
|
19551
|
-
document.removeEventListener(
|
|
19552
|
-
document.removeEventListener('mouseup', this.onResizeEnd.bind(this));
|
|
19553
|
+
document.removeEventListener("mousemove", this._onMouseMove);
|
|
19554
|
+
document.removeEventListener("mouseup", this._onMouseUp);
|
|
19553
19555
|
}
|
|
19554
19556
|
timeDifference(date1, date2) {
|
|
19555
19557
|
let difference = this.convertDateToEuropean(date1).getTime() / 1000 - this.convertDateToEuropean(date2).getTime() / 1000;
|
|
@@ -19601,90 +19603,92 @@ class HourSchedulingExpandableComponent {
|
|
|
19601
19603
|
});
|
|
19602
19604
|
}
|
|
19603
19605
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HourSchedulingExpandableComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
19604
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: HourSchedulingExpandableComponent, isStandalone: false, selector: "co-hour-scheduling-expandable", inputs: { schedule: "schedule", startTimeProp: "startTimeProp", endTimeProp: "endTimeProp", objectsProp: "objectsProp", childProp: "childProp", customTemplate: "customTemplate", idProp: "idProp" }, outputs: { timeChangeEvent: "timeChangeEvent", newObjectPlanEvent: "newObjectPlanEvent", moveBetweenCalendarsEvent: "moveBetweenCalendarsEvent" }, host: { listeners: { "window:resize": "onResize($event)", "document:click": "clickOut($event)" }, properties: { "class.co-hour-scheduling-expandable": "this.showClass" } }, ngImport: i0, template: `
|
|
19605
|
-
<div class="wrapper">
|
|
19606
|
-
@for (hour of hourLabels; track hour) {
|
|
19607
|
-
<div class="time-block">
|
|
19608
|
-
<div class="hour-label"><span [textContent]="hour"></span></div>
|
|
19609
|
-
<div class="object-display">
|
|
19610
|
-
<div class="first-half-hour object-half"
|
|
19611
|
-
(dragover)="allowDrop($event, hour)"
|
|
19612
|
-
(dragleave)="handleDragLeave($event)"
|
|
19613
|
-
(drop)="handleDrop($event, hour)">
|
|
19614
|
-
</div>
|
|
19615
|
-
<div class="second-half-hour object-half"
|
|
19616
|
-
(dragover)="allowDrop($event, addHalfHour(hour))"
|
|
19617
|
-
(dragleave)="handleDragLeave($event)"
|
|
19618
|
-
(drop)="handleDrop($event, addHalfHour(hour))">
|
|
19619
|
-
</div>
|
|
19620
|
-
</div>
|
|
19621
|
-
</div>
|
|
19622
|
-
}
|
|
19623
|
-
|
|
19624
|
-
<div class="scheduled-objects" >
|
|
19625
|
-
<ng-container>
|
|
19626
|
-
<ng-template
|
|
19627
|
-
[ngTemplateOutlet]="customTemplate"
|
|
19606
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: HourSchedulingExpandableComponent, isStandalone: false, selector: "co-hour-scheduling-expandable", inputs: { schedule: "schedule", startTimeProp: "startTimeProp", endTimeProp: "endTimeProp", objectsProp: "objectsProp", childProp: "childProp", customTemplate: "customTemplate", idProp: "idProp" }, outputs: { timeChangeEvent: "timeChangeEvent", newObjectPlanEvent: "newObjectPlanEvent", moveBetweenCalendarsEvent: "moveBetweenCalendarsEvent" }, host: { listeners: { "window:resize": "onResize($event)", "document:click": "clickOut($event)" }, properties: { "class.co-hour-scheduling-expandable": "this.showClass" } }, ngImport: i0, template: `
|
|
19607
|
+
<div class="wrapper">
|
|
19608
|
+
@for (hour of hourLabels; track hour) {
|
|
19609
|
+
<div class="time-block">
|
|
19610
|
+
<div class="hour-label"><span [textContent]="hour"></span></div>
|
|
19611
|
+
<div class="object-display">
|
|
19612
|
+
<div class="first-half-hour object-half"
|
|
19613
|
+
(dragover)="allowDrop($event, hour)"
|
|
19614
|
+
(dragleave)="handleDragLeave($event)"
|
|
19615
|
+
(drop)="handleDrop($event, hour)">
|
|
19616
|
+
</div>
|
|
19617
|
+
<div class="second-half-hour object-half"
|
|
19618
|
+
(dragover)="allowDrop($event, addHalfHour(hour))"
|
|
19619
|
+
(dragleave)="handleDragLeave($event)"
|
|
19620
|
+
(drop)="handleDrop($event, addHalfHour(hour))">
|
|
19621
|
+
</div>
|
|
19622
|
+
</div>
|
|
19623
|
+
</div>
|
|
19624
|
+
}
|
|
19625
|
+
|
|
19626
|
+
<div class="scheduled-objects" >
|
|
19627
|
+
<ng-container>
|
|
19628
|
+
<ng-template
|
|
19629
|
+
[ngTemplateOutlet]="customTemplate"
|
|
19628
19630
|
[ngTemplateOutletContext]="{
|
|
19629
19631
|
objects: scheduledObjects,
|
|
19630
19632
|
onSelectBlock: this.onSelectBlock.bind(this),
|
|
19631
19633
|
onResizeStart: this.onResizeStart.bind(this),
|
|
19634
|
+
onResizeEnd: this.onResizeEnd.bind(this),
|
|
19632
19635
|
onDragStartCustom: this.onDragStartCustom.bind(this)
|
|
19633
19636
|
|
|
19634
19637
|
}"
|
|
19635
|
-
>
|
|
19636
|
-
<ng-content></ng-content>
|
|
19637
|
-
</ng-template>
|
|
19638
|
-
</ng-container>
|
|
19639
|
-
</div>
|
|
19640
|
-
|
|
19641
|
-
</div>
|
|
19642
|
-
|
|
19638
|
+
>
|
|
19639
|
+
<ng-content></ng-content>
|
|
19640
|
+
</ng-template>
|
|
19641
|
+
</ng-container>
|
|
19642
|
+
</div>
|
|
19643
|
+
|
|
19644
|
+
</div>
|
|
19645
|
+
|
|
19643
19646
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
19644
19647
|
}
|
|
19645
19648
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HourSchedulingExpandableComponent, decorators: [{
|
|
19646
19649
|
type: Component,
|
|
19647
19650
|
args: [{
|
|
19648
19651
|
selector: 'co-hour-scheduling-expandable',
|
|
19649
|
-
template: `
|
|
19650
|
-
<div class="wrapper">
|
|
19651
|
-
@for (hour of hourLabels; track hour) {
|
|
19652
|
-
<div class="time-block">
|
|
19653
|
-
<div class="hour-label"><span [textContent]="hour"></span></div>
|
|
19654
|
-
<div class="object-display">
|
|
19655
|
-
<div class="first-half-hour object-half"
|
|
19656
|
-
(dragover)="allowDrop($event, hour)"
|
|
19657
|
-
(dragleave)="handleDragLeave($event)"
|
|
19658
|
-
(drop)="handleDrop($event, hour)">
|
|
19659
|
-
</div>
|
|
19660
|
-
<div class="second-half-hour object-half"
|
|
19661
|
-
(dragover)="allowDrop($event, addHalfHour(hour))"
|
|
19662
|
-
(dragleave)="handleDragLeave($event)"
|
|
19663
|
-
(drop)="handleDrop($event, addHalfHour(hour))">
|
|
19664
|
-
</div>
|
|
19665
|
-
</div>
|
|
19666
|
-
</div>
|
|
19667
|
-
}
|
|
19668
|
-
|
|
19669
|
-
<div class="scheduled-objects" >
|
|
19670
|
-
<ng-container>
|
|
19671
|
-
<ng-template
|
|
19672
|
-
[ngTemplateOutlet]="customTemplate"
|
|
19652
|
+
template: `
|
|
19653
|
+
<div class="wrapper">
|
|
19654
|
+
@for (hour of hourLabels; track hour) {
|
|
19655
|
+
<div class="time-block">
|
|
19656
|
+
<div class="hour-label"><span [textContent]="hour"></span></div>
|
|
19657
|
+
<div class="object-display">
|
|
19658
|
+
<div class="first-half-hour object-half"
|
|
19659
|
+
(dragover)="allowDrop($event, hour)"
|
|
19660
|
+
(dragleave)="handleDragLeave($event)"
|
|
19661
|
+
(drop)="handleDrop($event, hour)">
|
|
19662
|
+
</div>
|
|
19663
|
+
<div class="second-half-hour object-half"
|
|
19664
|
+
(dragover)="allowDrop($event, addHalfHour(hour))"
|
|
19665
|
+
(dragleave)="handleDragLeave($event)"
|
|
19666
|
+
(drop)="handleDrop($event, addHalfHour(hour))">
|
|
19667
|
+
</div>
|
|
19668
|
+
</div>
|
|
19669
|
+
</div>
|
|
19670
|
+
}
|
|
19671
|
+
|
|
19672
|
+
<div class="scheduled-objects" >
|
|
19673
|
+
<ng-container>
|
|
19674
|
+
<ng-template
|
|
19675
|
+
[ngTemplateOutlet]="customTemplate"
|
|
19673
19676
|
[ngTemplateOutletContext]="{
|
|
19674
19677
|
objects: scheduledObjects,
|
|
19675
19678
|
onSelectBlock: this.onSelectBlock.bind(this),
|
|
19676
19679
|
onResizeStart: this.onResizeStart.bind(this),
|
|
19680
|
+
onResizeEnd: this.onResizeEnd.bind(this),
|
|
19677
19681
|
onDragStartCustom: this.onDragStartCustom.bind(this)
|
|
19678
19682
|
|
|
19679
19683
|
}"
|
|
19680
|
-
>
|
|
19681
|
-
<ng-content></ng-content>
|
|
19682
|
-
</ng-template>
|
|
19683
|
-
</ng-container>
|
|
19684
|
-
</div>
|
|
19685
|
-
|
|
19686
|
-
</div>
|
|
19687
|
-
|
|
19684
|
+
>
|
|
19685
|
+
<ng-content></ng-content>
|
|
19686
|
+
</ng-template>
|
|
19687
|
+
</ng-container>
|
|
19688
|
+
</div>
|
|
19689
|
+
|
|
19690
|
+
</div>
|
|
19691
|
+
|
|
19688
19692
|
`,
|
|
19689
19693
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19690
19694
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -19740,11 +19744,9 @@ class HourSchedulingExpandableTemplateComponent {
|
|
|
19740
19744
|
showClass() {
|
|
19741
19745
|
return true;
|
|
19742
19746
|
}
|
|
19743
|
-
onExpandableDragStart(event, obj
|
|
19744
|
-
event.dataTransfer
|
|
19745
|
-
|
|
19746
|
-
onDragStartCustom?.call(obj);
|
|
19747
|
-
}
|
|
19747
|
+
onExpandableDragStart(event, obj) {
|
|
19748
|
+
event.dataTransfer?.setData("text", JSON.stringify(obj));
|
|
19749
|
+
this.onDragStartCustom?.(obj);
|
|
19748
19750
|
}
|
|
19749
19751
|
calculateLeftAndWidthOfObjects() {
|
|
19750
19752
|
const layoutData = new Array(this._objects.length);
|
|
@@ -19789,76 +19791,66 @@ class HourSchedulingExpandableTemplateComponent {
|
|
|
19789
19791
|
return layoutData;
|
|
19790
19792
|
}
|
|
19791
19793
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HourSchedulingExpandableTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19792
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: HourSchedulingExpandableTemplateComponent, isStandalone: false, selector: "co-hour-scheduling-expandable-template", inputs: { objectTemplate: "objectTemplate", objects: "objects", onDragStartCustom: "onDragStartCustom", onResizeStart: "onResizeStart", onSelectBlock: "onSelectBlock", startTimeProp: "startTimeProp", endTimeProp: "endTimeProp" }, host: { properties: { "class.co-hour-scheduling-expandable-template": "this.showClass" } }, ngImport: i0, template: `
|
|
19793
|
-
|
|
19794
|
-
@for (obj of objects; track obj) {
|
|
19795
|
-
|
|
19796
|
-
|
|
19797
|
-
|
|
19798
|
-
|
|
19799
|
-
|
|
19800
|
-
|
|
19801
|
-
|
|
19802
|
-
|
|
19803
|
-
|
|
19804
|
-
|
|
19805
|
-
|
|
19806
|
-
|
|
19807
|
-
|
|
19808
|
-
|
|
19809
|
-
|
|
19810
|
-
|
|
19811
|
-
|
|
19812
|
-
|
|
19813
|
-
|
|
19814
|
-
|
|
19815
|
-
|
|
19816
|
-
|
|
19817
|
-
|
|
19818
|
-
|
|
19819
|
-
class="bottom-resizer"
|
|
19820
|
-
(mousedown)="onResizeStart($event, obj, 'bottom')"></div>
|
|
19821
|
-
}
|
|
19822
|
-
</div>
|
|
19823
|
-
}
|
|
19794
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: HourSchedulingExpandableTemplateComponent, isStandalone: false, selector: "co-hour-scheduling-expandable-template", inputs: { objectTemplate: "objectTemplate", objects: "objects", onDragStartCustom: "onDragStartCustom", onResizeStart: "onResizeStart", onSelectBlock: "onSelectBlock", startTimeProp: "startTimeProp", endTimeProp: "endTimeProp" }, host: { properties: { "class.co-hour-scheduling-expandable-template": "this.showClass" } }, ngImport: i0, template: `
|
|
19795
|
+
|
|
19796
|
+
@for (obj of objects; track obj.id; let i = $index) {
|
|
19797
|
+
<div
|
|
19798
|
+
class="custom-scheduled-object"
|
|
19799
|
+
[class.selected]="obj.selected"
|
|
19800
|
+
[draggable]="!obj.selected"
|
|
19801
|
+
[style.--height]="obj.height + 'px'"
|
|
19802
|
+
[style.--top]="obj.top + 'px'"
|
|
19803
|
+
[style.--left]="layouts[i]?.leftPercent + '%'"
|
|
19804
|
+
[style.--width]="layouts[i]?.widthPercent + '%'"
|
|
19805
|
+
(click)="onSelectBlock(obj)"
|
|
19806
|
+
(dragstart)="onExpandableDragStart($event, obj)">
|
|
19807
|
+
@if (obj.selected) {
|
|
19808
|
+
<div class="top-resizer" (mousedown)="onResizeStart($event, obj, 'top')"></div>
|
|
19809
|
+
}
|
|
19810
|
+
|
|
19811
|
+
<ng-template
|
|
19812
|
+
[ngTemplateOutlet]="objectTemplate"
|
|
19813
|
+
[ngTemplateOutletContext]="{object: obj}">
|
|
19814
|
+
</ng-template>
|
|
19815
|
+
|
|
19816
|
+
@if (obj.selected) {
|
|
19817
|
+
<div class="bottom-resizer" (mousedown)="onResizeStart($event, obj, 'bottom')"></div>
|
|
19818
|
+
}
|
|
19819
|
+
</div>
|
|
19820
|
+
}
|
|
19824
19821
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
19825
19822
|
}
|
|
19826
19823
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HourSchedulingExpandableTemplateComponent, decorators: [{
|
|
19827
19824
|
type: Component,
|
|
19828
19825
|
args: [{
|
|
19829
19826
|
selector: 'co-hour-scheduling-expandable-template',
|
|
19830
|
-
template: `
|
|
19831
|
-
|
|
19832
|
-
@for (obj of objects; track obj) {
|
|
19833
|
-
|
|
19834
|
-
|
|
19835
|
-
|
|
19836
|
-
|
|
19837
|
-
|
|
19838
|
-
|
|
19839
|
-
|
|
19840
|
-
|
|
19841
|
-
|
|
19842
|
-
|
|
19843
|
-
|
|
19844
|
-
|
|
19845
|
-
|
|
19846
|
-
|
|
19847
|
-
|
|
19848
|
-
|
|
19849
|
-
|
|
19850
|
-
|
|
19851
|
-
|
|
19852
|
-
|
|
19853
|
-
|
|
19854
|
-
|
|
19855
|
-
|
|
19856
|
-
|
|
19857
|
-
class="bottom-resizer"
|
|
19858
|
-
(mousedown)="onResizeStart($event, obj, 'bottom')"></div>
|
|
19859
|
-
}
|
|
19860
|
-
</div>
|
|
19861
|
-
}
|
|
19827
|
+
template: `
|
|
19828
|
+
|
|
19829
|
+
@for (obj of objects; track obj.id; let i = $index) {
|
|
19830
|
+
<div
|
|
19831
|
+
class="custom-scheduled-object"
|
|
19832
|
+
[class.selected]="obj.selected"
|
|
19833
|
+
[draggable]="!obj.selected"
|
|
19834
|
+
[style.--height]="obj.height + 'px'"
|
|
19835
|
+
[style.--top]="obj.top + 'px'"
|
|
19836
|
+
[style.--left]="layouts[i]?.leftPercent + '%'"
|
|
19837
|
+
[style.--width]="layouts[i]?.widthPercent + '%'"
|
|
19838
|
+
(click)="onSelectBlock(obj)"
|
|
19839
|
+
(dragstart)="onExpandableDragStart($event, obj)">
|
|
19840
|
+
@if (obj.selected) {
|
|
19841
|
+
<div class="top-resizer" (mousedown)="onResizeStart($event, obj, 'top')"></div>
|
|
19842
|
+
}
|
|
19843
|
+
|
|
19844
|
+
<ng-template
|
|
19845
|
+
[ngTemplateOutlet]="objectTemplate"
|
|
19846
|
+
[ngTemplateOutletContext]="{object: obj}">
|
|
19847
|
+
</ng-template>
|
|
19848
|
+
|
|
19849
|
+
@if (obj.selected) {
|
|
19850
|
+
<div class="bottom-resizer" (mousedown)="onResizeStart($event, obj, 'bottom')"></div>
|
|
19851
|
+
}
|
|
19852
|
+
</div>
|
|
19853
|
+
}
|
|
19862
19854
|
`,
|
|
19863
19855
|
encapsulation: ViewEncapsulation.None,
|
|
19864
19856
|
standalone: false
|