@colijnit/corecomponents_v12 255.1.11 → 255.1.12
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 +27 -13
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12-255.1.11.tgz +0 -0
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/hour-scheduling/hour-scheduling.component.js +24 -12
- package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +2 -1
- package/esm2015/lib/core/enum/core-components-icon.enum.js +1 -1
- package/esm2015/lib/core/enum/filterItem-mode.enum.js +3 -3
- package/fesm2015/colijnit-corecomponents_v12.js +25 -12
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/hour-scheduling/hour-scheduling.component.d.ts +4 -3
- package/lib/components/hour-scheduling/style/_layout.scss +2 -0
- package/package.json +1 -1
|
@@ -5712,13 +5712,13 @@
|
|
|
5712
5712
|
exports.FilterItemMode = void 0;
|
|
5713
5713
|
(function (FilterItemMode) {
|
|
5714
5714
|
//This mode makes the Filter display a multi select list
|
|
5715
|
-
// Input will be passed along directly as a string with the following syntax: "
|
|
5715
|
+
// Input will be passed along directly as a string with the following syntax: "?='choice 1', ?='choice2'"
|
|
5716
5716
|
FilterItemMode["Filterlist"] = "filterlist";
|
|
5717
5717
|
//This mode makes the Filter display a single select list
|
|
5718
5718
|
// Input will be passed along directly as a simple string.
|
|
5719
5719
|
FilterItemMode["SingleSelectList"] = "singleSelectList";
|
|
5720
5720
|
//This mode makes the Filter display a multi select list
|
|
5721
|
-
// Input will be passed along directly as a simple
|
|
5721
|
+
// Input will be passed along directly as a simple collection of strings.
|
|
5722
5722
|
FilterItemMode["SelectListWithStringCollectionOutput"] = "selectListWithStringCollectionOutput";
|
|
5723
5723
|
//This mode makes the Filter display a multi select list
|
|
5724
5724
|
// Available choices will need to have their identifying value be a number. The summation of all these numbers will be passed along.
|
|
@@ -8007,7 +8007,7 @@
|
|
|
8007
8007
|
InputNumberPickerComponent.decorators = [
|
|
8008
8008
|
{ type: i0.Component, args: [{
|
|
8009
8009
|
selector: 'co-input-number-picker',
|
|
8010
|
-
template: "\n <div class=\"icon-wrapper\" *ngIf=\"leftIconData\">\n <co-icon class=\"input-number-picker-icon\" [iconData]=\"leftIconData\" (click)=\"iconClick.emit($event)\"></co-icon>\n <div class=\"spacer\"></div>\n </div>\n <div class=\"button-wrapper\">\n <co-button *ngIf=\"showButtons\" class=\"minus-operator\" [class.select]=\"minSelected\" tabindex=\"-1\"\n [disabled]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(minusIcon)\"\n (mousedown)=\"onMinusMouseDown($event)\"\n (mouseup)=\"stopAutoCounting()\" (mouseleave)=\"stopAutoCounting()\"></co-button>\n </div>\n <input type=\"text\"\n [tabIndex]=\"readonly ? -1 : 0\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n (ngModelChange)=\"handleChangeModel($event)\"\n (keydown)=\"handleInputKeyDown($event)\"\n (blur)=\"handleBlur()\"/>\n <div class=\"button-wrapper\">\n <co-button *ngIf=\"showButtons\" class=\"plus-operator\" [class.select]=\"plusSelected\" tabindex=\"-1\"\n [disabled]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(plusIcon)\"\n (mousedown)=\"onPlusMouseDown($event)\"\n (mouseup)=\"stopAutoCounting()\" (mouseleave)=\"stopAutoCounting()\"></co-button>\n </div>\n ",
|
|
8010
|
+
template: "\n <div class=\"icon-wrapper\" *ngIf=\"leftIconData\">\n <co-icon class=\"input-number-picker-icon\" [iconData]=\"leftIconData\" (click)=\"iconClick.emit($event)\"></co-icon>\n <div class=\"spacer\"></div>\n </div>\n <div class=\"button-wrapper\">\n <co-button *ngIf=\"showButtons\" class=\"minus-operator\" [class.select]=\"minSelected\" tabindex=\"-1\"\n [disabled]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(minusIcon)\"\n (mousedown)=\"onMinusMouseDown($event)\"\n (mouseup)=\"stopAutoCounting()\" (mouseleave)=\"stopAutoCounting()\"></co-button>\n </div>\n <input type=\"text\"\n [tabIndex]=\"readonly ? -1 : 0\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [placeholder]=\"label\"\n (ngModelChange)=\"handleChangeModel($event)\"\n (keydown)=\"handleInputKeyDown($event)\"\n (blur)=\"handleBlur()\"/>\n <div class=\"button-wrapper\">\n <co-button *ngIf=\"showButtons\" class=\"plus-operator\" [class.select]=\"plusSelected\" tabindex=\"-1\"\n [disabled]=\"readonly\"\n [iconData]=\"iconCacheService.getIcon(plusIcon)\"\n (mousedown)=\"onPlusMouseDown($event)\"\n (mouseup)=\"stopAutoCounting()\" (mouseleave)=\"stopAutoCounting()\"></co-button>\n </div>\n ",
|
|
8011
8011
|
providers: [
|
|
8012
8012
|
OverlayService, {
|
|
8013
8013
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputNumberPickerComponent; })
|
|
@@ -14117,10 +14117,11 @@
|
|
|
14117
14117
|
];
|
|
14118
14118
|
|
|
14119
14119
|
var HourSchedulingComponent = /** @class */ (function () {
|
|
14120
|
-
function HourSchedulingComponent(cdRef, datePipe) {
|
|
14120
|
+
function HourSchedulingComponent(cdRef, datePipe, zone) {
|
|
14121
|
+
var _this = this;
|
|
14121
14122
|
this.cdRef = cdRef;
|
|
14122
14123
|
this.datePipe = datePipe;
|
|
14123
|
-
this.
|
|
14124
|
+
this.zone = zone;
|
|
14124
14125
|
this.hourLabels = [];
|
|
14125
14126
|
this.scheduledObjects = {};
|
|
14126
14127
|
this.activeHour = null;
|
|
@@ -14129,14 +14130,16 @@
|
|
|
14129
14130
|
this.customTemplateUsed = false;
|
|
14130
14131
|
this.timeChangeEvent = new i0.EventEmitter();
|
|
14131
14132
|
this.newObjectPlanEvent = new i0.EventEmitter();
|
|
14132
|
-
|
|
14133
|
+
this.showClass = true;
|
|
14134
|
+
document.addEventListener('click', function () { return _this.onDocumentClick; });
|
|
14133
14135
|
}
|
|
14134
14136
|
HourSchedulingComponent.prototype.ngOnInit = function () {
|
|
14135
14137
|
this.generateTimeBlocks();
|
|
14136
14138
|
this.generateScheduledObjects();
|
|
14137
14139
|
};
|
|
14138
14140
|
HourSchedulingComponent.prototype.ngOnDestroy = function () {
|
|
14139
|
-
|
|
14141
|
+
var _this = this;
|
|
14142
|
+
document.removeEventListener('click', function () { return _this.onDocumentClick; });
|
|
14140
14143
|
};
|
|
14141
14144
|
HourSchedulingComponent.prototype.generateTimeBlocks = function () {
|
|
14142
14145
|
var startUnix = !this.childProp ? this.dateToUnixEpoch(new Date(this.schedule[this.startTimeProp])) : this.dateToUnixEpoch(new Date(this.schedule[this.childProp][this.startTimeProp]));
|
|
@@ -14182,12 +14185,21 @@
|
|
|
14182
14185
|
};
|
|
14183
14186
|
HourSchedulingComponent.prototype.onDragOver = function (event) {
|
|
14184
14187
|
event.preventDefault();
|
|
14185
|
-
|
|
14186
|
-
|
|
14188
|
+
event.stopPropagation();
|
|
14189
|
+
this.zone.runOutsideAngular(function () {
|
|
14190
|
+
var currentTarget = event.currentTarget;
|
|
14191
|
+
if (!currentTarget.classList.contains('drag-over')) {
|
|
14192
|
+
currentTarget.classList.add('drag-over');
|
|
14193
|
+
}
|
|
14194
|
+
});
|
|
14187
14195
|
};
|
|
14188
14196
|
HourSchedulingComponent.prototype.onDragLeave = function (event) {
|
|
14189
|
-
|
|
14190
|
-
|
|
14197
|
+
event.preventDefault();
|
|
14198
|
+
event.stopPropagation();
|
|
14199
|
+
this.zone.runOutsideAngular(function () {
|
|
14200
|
+
var currentTarget = event.currentTarget;
|
|
14201
|
+
currentTarget.classList.remove('drag-over');
|
|
14202
|
+
});
|
|
14191
14203
|
};
|
|
14192
14204
|
HourSchedulingComponent.prototype.onDrop = function (event, hour) {
|
|
14193
14205
|
var _c;
|
|
@@ -14285,12 +14297,14 @@
|
|
|
14285
14297
|
{ type: i0.Component, args: [{
|
|
14286
14298
|
selector: 'co-hour-scheduling',
|
|
14287
14299
|
template: "\n <div class=\"time-block\" *ngFor=\"let hour of hourLabels\">\n <div class=\"hour-label\"><span [textContent]=\"hour\"></span></div>\n <div class=\"object-display\">\n <div class=\"first-half-hour object-half\"\n [ngClass]=\"{'has-objects': scheduledObjects[hour]?.length > 0, 'active': activeHalfHour === hour + '-firstHalf'}\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (click)=\"onObjectDisplayClick(hour, 'firstHalf')\"\n (drop)=\"onDrop($event, hour)\">\n <ng-container *ngIf=\"!customTemplateUsed\">\n <ng-container *ngIf=\"scheduledObjects[hour]\">\n <span class=\"hidden-hour-label\" [hidden]=\"true\" [textContent]=\"hour\"></span>\n <div\n *ngFor=\"let obj of scheduledObjects[hour]\"\n class=\"scheduled-object\"\n [draggable]=\"true\"\n (dragstart)=\"onDragStart($event, obj)\"\n >\n <span class=\"hidden-hour-label\" [hidden]=\"true\" [textContent]=\"addMinutes(hour)\"></span>\n <span class=\"title\" [textContent]=\"obj.title\"></span>\n <span class=\"sub-title\" [textContent]=\"obj.subTitle\"></span>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"customTemplateUsed\">\n <ng-template\n [ngTemplateOutlet]=\"customTemplate\"\n [ngTemplateOutletContext]=\"{\n hour: hour,\n hiddenHour: hour,\n objects: scheduledObjects[hour]\n }\"\n >\n </ng-template>\n </ng-container>\n </div>\n\n <div class=\"second-half-hour object-half\"\n [ngClass]=\"{'has-objects': scheduledObjects[addMinutes(hour)]?.length > 0, 'active': activeHalfHour === hour + '-secondHalf'}\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (click)=\"onObjectDisplayClick(hour, 'secondHalf')\"\n (drop)=\"onDrop($event, addMinutes(hour))\">\n <ng-container *ngIf=\"!customTemplateUsed\">\n <ng-container *ngIf=\"scheduledObjects[addMinutes(hour)]\">\n <div\n *ngFor=\"let obj of scheduledObjects[addMinutes(hour)]\"\n class=\"scheduled-object\"\n [draggable]=\"true\"\n (dragstart)=\"onDragStart($event, obj)\"\n >\n <span class=\"title\" [textContent]=\"obj.title\"></span>\n <span class=\"sub-title\" [textContent]=\"obj.subTitle\"></span>\n <span class=\"hidden-hour-label\" [hidden]=\"true\" [textContent]=\"addMinutes(hour)\"></span>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"customTemplateUsed\">\n <ng-template\n [ngTemplateOutlet]=\"customTemplate\"\n [ngTemplateOutletContext]=\"{\n hour: hour,\n hiddenHour: addMinutes(hour),\n objects: scheduledObjects[addMinutes(hour)]\n }\"\n >\n </ng-template>\n </ng-container>\n </div>\n\n\n </div>\n </div>\n ",
|
|
14300
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
14288
14301
|
encapsulation: i0.ViewEncapsulation.None
|
|
14289
14302
|
},] }
|
|
14290
14303
|
];
|
|
14291
14304
|
HourSchedulingComponent.ctorParameters = function () { return [
|
|
14292
14305
|
{ type: i0.ChangeDetectorRef },
|
|
14293
|
-
{ type: common.DatePipe }
|
|
14306
|
+
{ type: common.DatePipe },
|
|
14307
|
+
{ type: i0.NgZone }
|
|
14294
14308
|
]; };
|
|
14295
14309
|
HourSchedulingComponent.propDecorators = {
|
|
14296
14310
|
schedule: [{ type: i0.Input }],
|
|
@@ -14303,7 +14317,7 @@
|
|
|
14303
14317
|
idProp: [{ type: i0.Input }],
|
|
14304
14318
|
timeChangeEvent: [{ type: i0.Output }],
|
|
14305
14319
|
newObjectPlanEvent: [{ type: i0.Output }],
|
|
14306
|
-
|
|
14320
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-hour-scheduling',] }]
|
|
14307
14321
|
};
|
|
14308
14322
|
|
|
14309
14323
|
var HourSchedulingTestObjectComponent = /** @class */ (function () {
|