@colijnit/corecomponents_v12 256.1.7 → 256.1.9
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 +32 -4
- 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 +17 -3
- package/esm2015/lib/components/tooltip/tooltip.component.js +22 -4
- package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +1 -1
- package/esm2015/lib/service/base-module-screen-config.service.js +2 -2
- package/fesm2015/colijnit-corecomponents_v12.js +37 -5
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/hour-scheduling-expandable/hour-scheduling-expandable.component.d.ts +1 -0
- package/lib/components/hour-scheduling-expandable/style/_layout.scss +1 -1
- package/lib/components/tooltip/tooltip.component.d.ts +8 -3
- package/lib/service/base-module-screen-config.service.d.ts +1 -1
- package/lib/style/_input.mixins.scss +6 -0
- package/lib/style/_variables.scss +1 -0
- package/package.json +1 -1
|
@@ -13093,9 +13093,11 @@ function emailValidator(control) {
|
|
|
13093
13093
|
}
|
|
13094
13094
|
|
|
13095
13095
|
class TooltipComponent {
|
|
13096
|
-
constructor(_elementRef, _changeDetector) {
|
|
13096
|
+
constructor(_elementRef, _changeDetector, _renderer) {
|
|
13097
13097
|
this._elementRef = _elementRef;
|
|
13098
13098
|
this._changeDetector = _changeDetector;
|
|
13099
|
+
this._renderer = _renderer;
|
|
13100
|
+
this.tooltipClosed = new EventEmitter();
|
|
13099
13101
|
this.top = -100;
|
|
13100
13102
|
this.left = -100;
|
|
13101
13103
|
this.bottom = false;
|
|
@@ -13115,6 +13117,17 @@ class TooltipComponent {
|
|
|
13115
13117
|
setTimeout(() => {
|
|
13116
13118
|
this._positionTooltip();
|
|
13117
13119
|
});
|
|
13120
|
+
this._documentClickListener = this._renderer.listen('document', 'click', (event) => {
|
|
13121
|
+
if (!this._elementRef.nativeElement.contains(event.target)) {
|
|
13122
|
+
this.closeTooltip();
|
|
13123
|
+
}
|
|
13124
|
+
});
|
|
13125
|
+
}
|
|
13126
|
+
ngOnDestroy() {
|
|
13127
|
+
// Remove the click listener to prevent memory leaks
|
|
13128
|
+
if (this._documentClickListener) {
|
|
13129
|
+
this._documentClickListener();
|
|
13130
|
+
}
|
|
13118
13131
|
}
|
|
13119
13132
|
_positionTooltip() {
|
|
13120
13133
|
if (this.hostElement && this._elementRef && this._elementRef.nativeElement) {
|
|
@@ -13135,6 +13148,9 @@ class TooltipComponent {
|
|
|
13135
13148
|
this._changeDetector.detectChanges();
|
|
13136
13149
|
}
|
|
13137
13150
|
}
|
|
13151
|
+
closeTooltip() {
|
|
13152
|
+
this.tooltipClosed.emit();
|
|
13153
|
+
}
|
|
13138
13154
|
}
|
|
13139
13155
|
TooltipComponent.decorators = [
|
|
13140
13156
|
{ type: Component, args: [{
|
|
@@ -13155,11 +13171,13 @@ TooltipComponent.decorators = [
|
|
|
13155
13171
|
];
|
|
13156
13172
|
TooltipComponent.ctorParameters = () => [
|
|
13157
13173
|
{ type: ElementRef },
|
|
13158
|
-
{ type: ChangeDetectorRef }
|
|
13174
|
+
{ type: ChangeDetectorRef },
|
|
13175
|
+
{ type: Renderer2 }
|
|
13159
13176
|
];
|
|
13160
13177
|
TooltipComponent.propDecorators = {
|
|
13161
13178
|
hostElement: [{ type: Input }],
|
|
13162
13179
|
toolTip: [{ type: Input }],
|
|
13180
|
+
tooltipClosed: [{ type: Output }],
|
|
13163
13181
|
showClass: [{ type: HostBinding, args: ['class.co-tooltip',] }],
|
|
13164
13182
|
top: [{ type: HostBinding, args: ["style.top.px",] }],
|
|
13165
13183
|
left: [{ type: HostBinding, args: ["style.left.px",] }],
|
|
@@ -13292,7 +13310,7 @@ class BaseModuleScreenConfigService {
|
|
|
13292
13310
|
this._configObjects = configObjects;
|
|
13293
13311
|
if (configObjects && Array.isArray(configObjects)) {
|
|
13294
13312
|
this._buildScreenConfigMap();
|
|
13295
|
-
this.configSet.next(
|
|
13313
|
+
this.configSet.next(this._configObjects);
|
|
13296
13314
|
}
|
|
13297
13315
|
return this._configObjects;
|
|
13298
13316
|
});
|
|
@@ -14211,6 +14229,10 @@ class HourSchedulingExpandableComponent {
|
|
|
14211
14229
|
allowDrop(event, hour) {
|
|
14212
14230
|
event.preventDefault();
|
|
14213
14231
|
event.stopPropagation();
|
|
14232
|
+
const target = event.target;
|
|
14233
|
+
if (!target.classList.contains('drag-over')) {
|
|
14234
|
+
target.classList.add('drag-over');
|
|
14235
|
+
}
|
|
14214
14236
|
if (this.currentDraggingObject) {
|
|
14215
14237
|
let newStartDate = this.convertDateToEuropean(this.currentDraggingObject.start);
|
|
14216
14238
|
let hourSplit = hour.split(":");
|
|
@@ -14224,6 +14246,12 @@ class HourSchedulingExpandableComponent {
|
|
|
14224
14246
|
}
|
|
14225
14247
|
}
|
|
14226
14248
|
}
|
|
14249
|
+
handleDragLeave(event) {
|
|
14250
|
+
const target = event.target;
|
|
14251
|
+
if (target.classList.contains('drag-over')) {
|
|
14252
|
+
target.classList.remove('drag-over');
|
|
14253
|
+
}
|
|
14254
|
+
}
|
|
14227
14255
|
// Triggered when resizing starts
|
|
14228
14256
|
onResizeStart(event, obj, direction) {
|
|
14229
14257
|
this.resizing = true;
|
|
@@ -14342,11 +14370,15 @@ HourSchedulingExpandableComponent.decorators = [
|
|
|
14342
14370
|
<div class="hour-label"><span [textContent]="hour"></span></div>
|
|
14343
14371
|
|
|
14344
14372
|
<div class="object-display">
|
|
14345
|
-
<div class="first-half-hour object-half"
|
|
14373
|
+
<div class="first-half-hour object-half"
|
|
14374
|
+
(dragover)="allowDrop($event, hour)"
|
|
14375
|
+
(dragleave)="handleDragLeave($event)"
|
|
14346
14376
|
(drop)="handleDrop($event, hour)">
|
|
14347
14377
|
</div>
|
|
14348
14378
|
|
|
14349
|
-
<div class="second-half-hour object-half"
|
|
14379
|
+
<div class="second-half-hour object-half"
|
|
14380
|
+
(dragover)="allowDrop($event, addHalfHour(hour))"
|
|
14381
|
+
(dragleave)="handleDragLeave($event)"
|
|
14350
14382
|
(drop)="handleDrop($event, addHalfHour(hour))">
|
|
14351
14383
|
</div>
|
|
14352
14384
|
</div>
|