@colijnit/corecomponents_v12 12.2.10 → 12.2.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 +82 -37
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/calendar/calendar-template.component.js +51 -17
- package/esm2015/lib/components/co-dialog/co-dialog.component.js +16 -13
- package/esm2015/lib/components/co-dialog/co-dialog.module.js +4 -2
- package/esm2015/lib/components/form/form.component.js +2 -2
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +14 -4
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +3 -3
- package/esm2015/lib/directives/overlay/overlay.directive.js +18 -9
- package/fesm2015/colijnit-corecomponents_v12.js +117 -61
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/button/style/_layout.scss +29 -7
- package/lib/components/button/style/_material-definition.scss +12 -0
- package/lib/components/calendar/calendar-template.component.d.ts +4 -0
- package/lib/components/calendar/style/_layout.scss +33 -4
- package/lib/components/calendar/style/_material-definition.scss +25 -12
- package/lib/components/co-dialog/style/_layout.scss +25 -8
- package/lib/components/co-dialog/style/_material-definition.scss +8 -7
- package/lib/components/double-calendar/style/_layout.scss +4 -3
- package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +5 -0
- package/lib/components/simple-grid/style/_layout.scss +7 -0
- package/lib/components/simple-grid/style/_material-definition.scss +2 -0
- package/lib/directives/overlay/overlay.directive.d.ts +1 -1
- package/lib/style/_variables.scss +6 -1
- package/lib/style/corecomponents-globals.scss +61 -9
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('rxjs'), require('@angular/platform-browser'), require('@angular/animations'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('hammerjs'), require('@angular/cdk/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/forms', 'rxjs', '@angular/platform-browser', '@angular/animations', '@angular/common', '@angular/common/http', 'rxjs/operators', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', 'hammerjs', '@angular/cdk/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.forms, global.rxjs, global.ng.platformBrowser, global.ng.animations, global.ng.common, global.ng.common.http, global.rxjs.operators, global.three, global.CSS3DRenderer, global.TWEEN, null, global.ng.cdk.
|
|
5
|
-
})(this, (function (exports, i0, forms, rxjs, platformBrowser, animations, common, http, operators, three, CSS3DRenderer, TWEEN, hammerjs, overlay, portal,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('rxjs'), require('@angular/platform-browser'), require('@angular/animations'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('hammerjs'), require('@angular/cdk/drag-drop'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@colijnit/ioneconnector/build/utils/array-utils'), require('@colijnit/ioneconnector/build/model/default-get-object-configurations-params'), require('@colijnit/ioneconnector/build/model/object-configuration')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/forms', 'rxjs', '@angular/platform-browser', '@angular/animations', '@angular/common', '@angular/common/http', 'rxjs/operators', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', 'hammerjs', '@angular/cdk/drag-drop', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/cdk/scrolling', '@colijnit/ioneconnector/build/utils/array-utils', '@colijnit/ioneconnector/build/model/default-get-object-configurations-params', '@colijnit/ioneconnector/build/model/object-configuration'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.forms, global.rxjs, global.ng.platformBrowser, global.ng.animations, global.ng.common, global.ng.common.http, global.rxjs.operators, global.three, global.CSS3DRenderer, global.TWEEN, null, global.ng.cdk.dragDrop, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.scrolling, global.arrayUtils, global.defaultGetObjectConfigurationsParams, global.objectConfiguration));
|
|
5
|
+
})(this, (function (exports, i0, forms, rxjs, platformBrowser, animations, common, http, operators, three, CSS3DRenderer, TWEEN, hammerjs, dragDrop, overlay, portal, scrolling, arrayUtils, defaultGetObjectConfigurationsParams, objectConfiguration) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -4959,7 +4959,7 @@
|
|
|
4959
4959
|
CoDialogComponent.decorators = [
|
|
4960
4960
|
{ type: i0.Component, args: [{
|
|
4961
4961
|
selector: 'co-dialog',
|
|
4962
|
-
template: "\n <div class=\"co-dialog-overlay\" (click)=\"handleOverlayClick($event)\"></div>\n <div class=\"co-dialog-wrapper\" [ngClass]=\"customCssClass ? customCssClass : undefined\" @showHideDialog>\n
|
|
4962
|
+
template: "\n <div class=\"co-dialog-overlay\" (click)=\"handleOverlayClick($event)\"></div>\n <div class=\"co-dialog-placeholder\">\n <div class=\"co-dialog-wrapper\" [ngClass]=\"customCssClass ? customCssClass : undefined\" @showHideDialog cdkDrag>\n <div *ngIf=\"!borderless\" class=\"dialog-drag-handle\" cdkDragHandle></div>\n <div class=\"dialog-header\" *ngIf=\"!borderless\">\n <div class=\"dialog-header-caption\" *ngIf=\"headerTemplate\">\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container>\n </div>\n <div class=\"dialog-close-button\" *ngIf=\"showCloseIcon\" (click)=\"handleCloseDialog($event)\">\n <co-icon [icon]=\"icons.CrossSkinny\"></co-icon>\n </div>\n </div>\n <div class=\"dialog-content co-small-scrollbar\" [ngClass]=\"customCssClass ? customCssClass : undefined\">\n <ng-content></ng-content>\n </div>\n <div class=\"dialog-footer\" *ngIf=\"footerTemplate\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n </div>\n </div>\n </div>\n ",
|
|
4963
4963
|
animations: [
|
|
4964
4964
|
animations.trigger('showHideCoDialog', [
|
|
4965
4965
|
animations.transition('void => *', [
|
|
@@ -5003,7 +5003,8 @@
|
|
|
5003
5003
|
{ type: i0.NgModule, args: [{
|
|
5004
5004
|
imports: [
|
|
5005
5005
|
common.CommonModule,
|
|
5006
|
-
IconModule
|
|
5006
|
+
IconModule,
|
|
5007
|
+
dragDrop.DragDropModule
|
|
5007
5008
|
],
|
|
5008
5009
|
declarations: [CoDialogComponent],
|
|
5009
5010
|
exports: [CoDialogComponent]
|
|
@@ -5417,7 +5418,7 @@
|
|
|
5417
5418
|
}());
|
|
5418
5419
|
FormComponent.decorators = [
|
|
5419
5420
|
{ type: i0.Component, args: [{
|
|
5420
|
-
selector: "co-form",
|
|
5421
|
+
selector: "co-form-test",
|
|
5421
5422
|
template: "\n <ng-content></ng-content>\n ",
|
|
5422
5423
|
encapsulation: i0.ViewEncapsulation.None
|
|
5423
5424
|
},] }
|
|
@@ -5979,6 +5980,25 @@
|
|
|
5979
5980
|
showClass: [{ type: i0.HostBinding, args: ['class.co-input-date',] }]
|
|
5980
5981
|
};
|
|
5981
5982
|
|
|
5983
|
+
var OverlayParentDirective = /** @class */ (function () {
|
|
5984
|
+
function OverlayParentDirective(elementRef) {
|
|
5985
|
+
this.elementRef = elementRef;
|
|
5986
|
+
}
|
|
5987
|
+
OverlayParentDirective.prototype.ngOnDestroy = function () {
|
|
5988
|
+
this.elementRef = undefined;
|
|
5989
|
+
};
|
|
5990
|
+
return OverlayParentDirective;
|
|
5991
|
+
}());
|
|
5992
|
+
OverlayParentDirective.decorators = [
|
|
5993
|
+
{ type: i0.Directive, args: [{
|
|
5994
|
+
selector: '[overlayParent]',
|
|
5995
|
+
exportAs: 'overlayParent'
|
|
5996
|
+
},] }
|
|
5997
|
+
];
|
|
5998
|
+
OverlayParentDirective.ctorParameters = function () { return [
|
|
5999
|
+
{ type: i0.ElementRef }
|
|
6000
|
+
]; };
|
|
6001
|
+
|
|
5982
6002
|
var OverlayDirective = /** @class */ (function () {
|
|
5983
6003
|
function OverlayDirective(elementRef) {
|
|
5984
6004
|
var _this = this;
|
|
@@ -5999,7 +6019,15 @@
|
|
|
5999
6019
|
Object.defineProperty(OverlayDirective.prototype, "parent", {
|
|
6000
6020
|
set: function (value) {
|
|
6001
6021
|
if (value) {
|
|
6002
|
-
|
|
6022
|
+
if (value instanceof i0.ElementRef) {
|
|
6023
|
+
this._parent = value.nativeElement;
|
|
6024
|
+
}
|
|
6025
|
+
else if (value instanceof OverlayParentDirective) {
|
|
6026
|
+
this._parent = value.elementRef.nativeElement;
|
|
6027
|
+
}
|
|
6028
|
+
else {
|
|
6029
|
+
this._parent = value;
|
|
6030
|
+
}
|
|
6003
6031
|
}
|
|
6004
6032
|
else {
|
|
6005
6033
|
if (this._parent && this._resizeObserver) {
|
|
@@ -6044,14 +6072,14 @@
|
|
|
6044
6072
|
root: null
|
|
6045
6073
|
});
|
|
6046
6074
|
if (this._parent) {
|
|
6047
|
-
this._intersectionObserver.observe(this._parent
|
|
6075
|
+
this._intersectionObserver.observe(this._parent); // observe parent for visibility
|
|
6048
6076
|
}
|
|
6049
6077
|
this._resizeObserver.observe(document.body);
|
|
6050
6078
|
};
|
|
6051
6079
|
OverlayDirective.prototype._checkAndPlaceElement = function () {
|
|
6052
|
-
if (this._elementRef && this._elementRef.nativeElement && this._parent
|
|
6080
|
+
if (this._elementRef && this._elementRef.nativeElement && this._parent) {
|
|
6053
6081
|
var elementRect = this._elementRef.nativeElement.getBoundingClientRect();
|
|
6054
|
-
var parentBoundingRect = this._parent.
|
|
6082
|
+
var parentBoundingRect = this._parent.getBoundingClientRect();
|
|
6055
6083
|
var parentRect = {};
|
|
6056
6084
|
if (!this.inline) {
|
|
6057
6085
|
parentRect = {
|
|
@@ -6064,10 +6092,10 @@
|
|
|
6064
6092
|
}
|
|
6065
6093
|
else {
|
|
6066
6094
|
parentRect = {
|
|
6067
|
-
bottom: this._parent.
|
|
6068
|
-
right: this._parent.
|
|
6069
|
-
left: this._parent.
|
|
6070
|
-
top: this._parent.
|
|
6095
|
+
bottom: this._parent.offsetTop + parentBoundingRect.height,
|
|
6096
|
+
right: this._parent.offsetLeft + parentBoundingRect.width,
|
|
6097
|
+
left: this._parent.offsetLeft,
|
|
6098
|
+
top: this._parent.offsetTop,
|
|
6071
6099
|
width: parentBoundingRect.width
|
|
6072
6100
|
};
|
|
6073
6101
|
}
|
|
@@ -6131,25 +6159,6 @@
|
|
|
6131
6159
|
fullSize: [{ type: i0.Input }]
|
|
6132
6160
|
};
|
|
6133
6161
|
|
|
6134
|
-
var OverlayParentDirective = /** @class */ (function () {
|
|
6135
|
-
function OverlayParentDirective(elementRef) {
|
|
6136
|
-
this.elementRef = elementRef;
|
|
6137
|
-
}
|
|
6138
|
-
OverlayParentDirective.prototype.ngOnDestroy = function () {
|
|
6139
|
-
this.elementRef = undefined;
|
|
6140
|
-
};
|
|
6141
|
-
return OverlayParentDirective;
|
|
6142
|
-
}());
|
|
6143
|
-
OverlayParentDirective.decorators = [
|
|
6144
|
-
{ type: i0.Directive, args: [{
|
|
6145
|
-
selector: '[overlayParent]',
|
|
6146
|
-
exportAs: 'overlayParent'
|
|
6147
|
-
},] }
|
|
6148
|
-
];
|
|
6149
|
-
OverlayParentDirective.ctorParameters = function () { return [
|
|
6150
|
-
{ type: i0.ElementRef }
|
|
6151
|
-
]; };
|
|
6152
|
-
|
|
6153
6162
|
var OverlayModule = /** @class */ (function () {
|
|
6154
6163
|
function OverlayModule() {
|
|
6155
6164
|
}
|
|
@@ -6803,6 +6812,8 @@
|
|
|
6803
6812
|
var CalendarTemplateComponent = /** @class */ (function () {
|
|
6804
6813
|
function CalendarTemplateComponent() {
|
|
6805
6814
|
this.icons = exports.CoreComponentsIcon;
|
|
6815
|
+
this.showWeekNumbers = true;
|
|
6816
|
+
this.weekNumbers = [];
|
|
6806
6817
|
this.locale = "nl-NL";
|
|
6807
6818
|
this.highlightDaysBetweenDates = false;
|
|
6808
6819
|
this.dateSelected = new i0.EventEmitter();
|
|
@@ -6887,6 +6898,7 @@
|
|
|
6887
6898
|
}
|
|
6888
6899
|
this.generateCalendar();
|
|
6889
6900
|
this._fillDatesBetweenSelected();
|
|
6901
|
+
this.calculateWeekNumbers();
|
|
6890
6902
|
};
|
|
6891
6903
|
CalendarTemplateComponent.prototype.nextMonth = function () {
|
|
6892
6904
|
if (this.workingMonth === 11) {
|
|
@@ -6898,6 +6910,7 @@
|
|
|
6898
6910
|
}
|
|
6899
6911
|
this.generateCalendar();
|
|
6900
6912
|
this._fillDatesBetweenSelected();
|
|
6913
|
+
this.calculateWeekNumbers();
|
|
6901
6914
|
};
|
|
6902
6915
|
CalendarTemplateComponent.prototype.prevYear = function () {
|
|
6903
6916
|
this.workingYear--;
|
|
@@ -6916,6 +6929,7 @@
|
|
|
6916
6929
|
this.monthHeader = month + " " + year;
|
|
6917
6930
|
this.yearHeader = "" + year;
|
|
6918
6931
|
this.generateYearSelectionYears();
|
|
6932
|
+
this.calculateWeekNumbers();
|
|
6919
6933
|
};
|
|
6920
6934
|
CalendarTemplateComponent.prototype._setInitialValues = function () {
|
|
6921
6935
|
this.workingDay = this.selectedDate ? this.selectedDate : new Date();
|
|
@@ -7049,16 +7063,39 @@
|
|
|
7049
7063
|
CalendarTemplateComponent.prototype._capitalizeFirstLetter = function (value) {
|
|
7050
7064
|
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
7051
7065
|
};
|
|
7066
|
+
CalendarTemplateComponent.prototype.calculateWeekNumbers = function () {
|
|
7067
|
+
this.weekNumbers = [];
|
|
7068
|
+
var weekNumber = null;
|
|
7069
|
+
for (var i = 0; i < this.daysInMonth.length; i++) {
|
|
7070
|
+
var day = this.daysInMonth[i];
|
|
7071
|
+
if (day) {
|
|
7072
|
+
// Start of a new week or first day of the month, calculate and set weekNumber
|
|
7073
|
+
weekNumber = this.getISOWeek(day);
|
|
7074
|
+
// Check if the weekNumber is not already in the array
|
|
7075
|
+
if (!this.weekNumbers.includes(weekNumber)) {
|
|
7076
|
+
this.weekNumbers.push(weekNumber);
|
|
7077
|
+
}
|
|
7078
|
+
}
|
|
7079
|
+
}
|
|
7080
|
+
};
|
|
7081
|
+
CalendarTemplateComponent.prototype.getISOWeek = function (date) {
|
|
7082
|
+
var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
7083
|
+
d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
|
|
7084
|
+
var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
7085
|
+
var weekNumber = Math.ceil(((d.valueOf() - yearStart.valueOf()) / 86400000 + 1) / 7);
|
|
7086
|
+
return weekNumber;
|
|
7087
|
+
};
|
|
7052
7088
|
return CalendarTemplateComponent;
|
|
7053
7089
|
}());
|
|
7054
7090
|
CalendarTemplateComponent.decorators = [
|
|
7055
7091
|
{ type: i0.Component, args: [{
|
|
7056
7092
|
selector: "calendar-template",
|
|
7057
|
-
template: "\n <div class=\"calendar\">\n <div class=\"calendar-header\" *ngIf=\"monthSelection || yearSelection\">\n <co-icon class=\"calendar-change-month-button\" [icon]=\"icons.ArrowPointLeft\" (click)=\"prevMonth()\"></co-icon>\n\n <div class=\"calendar-header-title-wrapper\">\n <span class=\"calendar-header-title\" [textContent]=\"monthSelection ? monthHeader : yearHeader\"\n (click)=\"monthSelection ? openMonthSelection() : openYearSelection()\"\n ></span>\n </div>\n\n <co-icon class=\"calendar-change-month-button\" [icon]=\"icons.ArrowPointRight\" (click)=\"nextMonth()\"></co-icon>\n </div>\n\n <div class=\"selection-grid month\" *ngIf=\"showMonthSelection\">\n <div *ngFor=\"let month of monthSelectionNames\"\n class=\"calendar-month-or-year\"\n (click)=\"selectMonth(month)\">\n <ng-container *ngIf=\"month\">\n <div class=\"month\" [textContent]=\"month\"></div>\n </ng-container>\n </div>\n </div>\n\n <div class=\"selection-grid year\" *ngIf=\"showYearSelection\">\n <div *ngFor=\"let year of yearSelectionYears\"\n class=\"calendar-month-or-year\"\n (click)=\"selectYear(year)\"\n [textContent]=\"year\">\n <ng-container *ngIf=\"year\">\n <div class=\"year\" [textContent]=\"year\"></div>\n </ng-container>\n </div>\n </div>\n\n
|
|
7093
|
+
template: "\n <div class=\"calendar\">\n <div class=\"calendar-header\" *ngIf=\"monthSelection || yearSelection\">\n <co-icon class=\"calendar-change-month-button\" [icon]=\"icons.ArrowPointLeft\" (click)=\"prevMonth()\"></co-icon>\n\n <div class=\"calendar-header-title-wrapper\">\n <span class=\"calendar-header-title\" [textContent]=\"monthSelection ? monthHeader : yearHeader\"\n (click)=\"monthSelection ? openMonthSelection() : openYearSelection()\"\n ></span>\n </div>\n\n <co-icon class=\"calendar-change-month-button\" [icon]=\"icons.ArrowPointRight\" (click)=\"nextMonth()\"></co-icon>\n </div>\n\n <div class=\"selection-grid month\" *ngIf=\"showMonthSelection\">\n <div *ngFor=\"let month of monthSelectionNames\"\n class=\"calendar-month-or-year\"\n (click)=\"selectMonth(month)\">\n <ng-container *ngIf=\"month\">\n <div class=\"month\" [textContent]=\"month\"></div>\n </ng-container>\n </div>\n </div>\n\n <div class=\"selection-grid year\" *ngIf=\"showYearSelection\">\n <div *ngFor=\"let year of yearSelectionYears\"\n class=\"calendar-month-or-year\"\n (click)=\"selectYear(year)\"\n [textContent]=\"year\">\n <ng-container *ngIf=\"year\">\n <div class=\"year\" [textContent]=\"year\"></div>\n </ng-container>\n </div>\n </div>\n <div class=\"calendar-wrapper\">\n <div class=\"week-wrapper\" *ngIf=\"showWeekNumbers && showCalendarBody\">\n <div class=\"week-number\" [textContent]=\"'W'\"></div>\n <div class=\"week-number\" *ngFor=\"let weekNumber of weekNumbers\">\n {{ weekNumber }}\n </div>\n </div>\n <div class=\"calendar-body\" *ngIf=\"showCalendarBody\">\n <div class=\"day-names\">\n <div class=\"weekday\" *ngFor=\"let dayName of dayNames\" [textContent]=\"dayName\"></div>\n </div>\n <div *ngFor=\"let day of daysInMonth\" class=\"calendar-day\"\n [class.highlighted-day]=\"daysToHighlight.includes(day)\"\n [class.selected-day]=\"selectedDate && (day && day.getTime() === selectedDate.getTime()) ||\n secondSelectedDate && (day && day.getTime() === secondSelectedDate.getTime()) ||\n temporarySelectedSecondaryDate && (day && day.getTime() === temporarySelectedSecondaryDate.getTime())\"\n (click)=\"selectDate(day)\"\n (mouseover)=\"handleMouseOverDay(day)\">\n <!-- Day number -->\n <ng-container *ngIf=\"day\">\n <div class=\"day-number\" [textContent]=\"day.getDate()\"></div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n ",
|
|
7058
7094
|
encapsulation: i0.ViewEncapsulation.None
|
|
7059
7095
|
},] }
|
|
7060
7096
|
];
|
|
7061
7097
|
CalendarTemplateComponent.propDecorators = {
|
|
7098
|
+
showWeekNumbers: [{ type: i0.Input }],
|
|
7062
7099
|
locale: [{ type: i0.Input }],
|
|
7063
7100
|
highlightDaysBetweenDates: [{ type: i0.Input }],
|
|
7064
7101
|
selectedDate: [{ type: i0.Input }],
|
|
@@ -7209,6 +7246,12 @@
|
|
|
7209
7246
|
InputDateRangePickerComponent.prototype.showClass = function () {
|
|
7210
7247
|
return true;
|
|
7211
7248
|
};
|
|
7249
|
+
InputDateRangePickerComponent.prototype.handleFirstInputClick = function (event) {
|
|
7250
|
+
event.stopPropagation();
|
|
7251
|
+
};
|
|
7252
|
+
InputDateRangePickerComponent.prototype.handleSecondInputClick = function (event) {
|
|
7253
|
+
event.stopPropagation();
|
|
7254
|
+
};
|
|
7212
7255
|
InputDateRangePickerComponent.prototype.handleDatesSelected = function (dates) {
|
|
7213
7256
|
this.setModel(dates);
|
|
7214
7257
|
};
|
|
@@ -7284,7 +7327,7 @@
|
|
|
7284
7327
|
InputDateRangePickerComponent.decorators = [
|
|
7285
7328
|
{ type: i0.Component, args: [{
|
|
7286
7329
|
selector: 'co-input-date-range',
|
|
7287
|
-
template: "\n <div class=\"inputs-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-input-text class=\"no-focus-line custom-height\"\n [(model)]=\"firstDateAsString\"\n [noClickFocus]=\"true\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [leftIcon]=\"leftIcon\"\n [leftIconData]=\"leftIconData\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleFirstDateChanged(firstDateAsString)\"\n (clearIconClick)=\"clearDate(0)\"\n ></co-input-text>\n <co-input-text class=\"no-focus-line custom-height\"\n [(model)]= \"secondDateAsString\"\n [noClickFocus]=\"true\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [rightIcon]=\"rightIcon\"\n (rightIconClick)=\"toggleCalendar()\"\n (blur)=\"handleSecondDateChanged(secondDateAsString)\"\n (clearIconClick)=\"clearDate(1)\"\n ></co-input-text>\n </div>\n ",
|
|
7330
|
+
template: "\n <div class=\"inputs-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-input-text #firstInput class=\"no-focus-line custom-height\"\n [(model)]=\"firstDateAsString\"\n [noClickFocus]=\"true\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [leftIcon]=\"leftIcon\"\n [leftIconData]=\"leftIconData\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleFirstDateChanged(firstDateAsString)\"\n (clearIconClick)=\"clearDate(0)\"\n (click)=\"handleFirstInputClick($event)\"\n ></co-input-text>\n <co-input-text #secondInput class=\"no-focus-line custom-height\"\n [(model)]= \"secondDateAsString\"\n [noClickFocus]=\"true\"\n [pattern]=\"'yyyy-MM-dd'\"\n [type]=\"'date'\"\n [rightIcon]=\"rightIcon\"\n (rightIconClick)=\"toggleCalendar()\"\n (blur)=\"handleSecondDateChanged(secondDateAsString)\"\n (clearIconClick)=\"clearDate(1)\"\n (click)=\"handleSecondInputClick($event)\"\n ></co-input-text>\n </div>\n ",
|
|
7288
7331
|
providers: [
|
|
7289
7332
|
OverlayService,
|
|
7290
7333
|
{
|
|
@@ -7299,6 +7342,8 @@
|
|
|
7299
7342
|
},] }
|
|
7300
7343
|
];
|
|
7301
7344
|
InputDateRangePickerComponent.propDecorators = {
|
|
7345
|
+
firstInput: [{ type: i0.ViewChild, args: ['firstInput',] }],
|
|
7346
|
+
secondInput: [{ type: i0.ViewChild, args: ['secondInput',] }],
|
|
7302
7347
|
showClass: [{ type: i0.HostBinding, args: ['class.co-input-date-range',] }]
|
|
7303
7348
|
};
|
|
7304
7349
|
|
|
@@ -10115,7 +10160,7 @@
|
|
|
10115
10160
|
SimpleGridComponent.decorators = [
|
|
10116
10161
|
{ type: i0.Component, args: [{
|
|
10117
10162
|
selector: 'co-simple-grid',
|
|
10118
|
-
template: "\n <co-grid-toolbar *ngIf=\"showToolbar\" [class.right]=\"rightToolbar\"\n [showEdit]=\"showEdit\"\n [showAdd]=\"showAdd\"\n [showDelete]=\"showDelete\"\n [deleteEnabled]=\"selectedRowIndex > -1\"\n (addClick)=\"addNewRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n (deleteClick)=\"removeRow()\"\n ></co-grid-toolbar>\n <table class=\"simple-grid-table\">\n <colgroup>\n <col *ngFor=\"let column of headerColumns; let index = index\"\n [class.simple-grid-column-auto-fit]=\"column.autoFit\"\n [style.width.px]=\"column.width\"\n [style.min-width.px]=\"MIN_COLUMN_WIDTH\">\n </colgroup>\n <thead>\n <tr>\n <th scope=\"col\" #headerCell class=\"simple-grid-column-header\" *ngFor=\"let column of headerColumns; let index = index\">\n <div class=\"simple-grid-column-header-wrapper\" [class.resizable]=\"resizable\"\n [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\">\n <ng-container *ngIf=\"column.headerTemplate; else noHeaderTemplate\">\n <ng-container [ngTemplateOutlet]=\"column.headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #noHeaderTemplate>\n <div class=\"simple-grid-column-header-label\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [textContent]=\"column.headerText || ' '\"\n ></div>\n </ng-template>\n <div *ngIf=\"resizable && column.resizable\" class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\"\n ></div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"simple-grid-drag-drop-list\"\n [cdkDropListDisabled]=\"!dragDropEnabled\"\n [cdkDropListData]=\"data\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\">\n <tr class=\"simple-grid-row\" [class.selected]=\"rowIndex === selectedRowIndex && !editing\" observeVisibility\n [class.disabled]=\"isRowDisabled(row)\"\n [class.editing]=\"rowIndex === editRowIndex\" *ngFor=\"let row of (!!rowsPerPage ? (data | paginate: {itemsPerPage: rowsPerPage, currentPage: currentPage}) : data); last as last; let rowIndex = index\" cdkDrag\n (click)=\"handleClickRow($event, rowIndex, row)\" (dblclick)=\"handleDblClickRow($event, rowIndex, row)\" (visibilityChange)=\"rowVisible.next(row)\">\n <co-form class=\"simple-grid-row-form\">\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumns.length\">\n <co-simple-grid-cell\n [column]=\"columns[singleColumnIndex(row)]\"\n [row]=\"row\"\n [editMode]=\"false\"\n ></co-simple-grid-cell>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isSingleColumnRow(row)\">\n <ng-container *ngFor=\"let column of headerColumns; let columnIndex = index\">\n <td class=\"simple-grid-column-cell\" *ngIf=\"columnIndex !== singleColumnIndex(row)\">\n <co-simple-grid-cell\n [column]=\"column\"\n [row]=\"row\"\n [editMode]=\"inlineEdit && editing && rowIndex === editRowIndex\"\n [fieldEditMode]=\"editCellIndex === columnIndex\"\n (cellClick)=\"handleCellClick(columnIndex)\"\n ></co-simple-grid-cell>\n <div *ngIf=\"column.resizable\" class=\"simple-grid-column-sizer-placeholder\"></div>\n </td>\n </ng-container>\n </ng-container>\n </co-form>\n </tr>\n </tbody>\n </table>\n <co-pagination-bar *ngIf=\"data?.length > rowsPerPage\" class=\"pagination-bar\"\n [itemsPerPage]=\"rowsPerPage\"\n [currentPage]=\"currentPage\"\n [totalItems]=\"data.length\"\n [autoHide]=\"true\"\n (previousClick)=\"goToPreviousPage()\"\n (nextClick)=\"goToNextPage()\"\n (pageClick)=\"setCurrentPage($event)\"\n ></co-pagination-bar>\n ",
|
|
10163
|
+
template: "\n <co-grid-toolbar *ngIf=\"showToolbar\" [class.right]=\"rightToolbar\"\n [showEdit]=\"showEdit\"\n [showAdd]=\"showAdd\"\n [showDelete]=\"showDelete\"\n [deleteEnabled]=\"selectedRowIndex > -1\"\n (addClick)=\"addNewRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n (deleteClick)=\"removeRow()\"\n ></co-grid-toolbar>\n <table class=\"simple-grid-table\">\n <colgroup>\n <col *ngFor=\"let column of headerColumns; let index = index\"\n [class.simple-grid-column-auto-fit]=\"column.autoFit\"\n [style.width.px]=\"column.width\"\n [style.min-width.px]=\"MIN_COLUMN_WIDTH\">\n </colgroup>\n <thead>\n <tr>\n <th scope=\"col\" #headerCell class=\"simple-grid-column-header\" *ngFor=\"let column of headerColumns; let index = index\">\n <div class=\"simple-grid-column-header-wrapper\" [class.resizable]=\"resizable\"\n [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\">\n <ng-container *ngIf=\"column.headerTemplate; else noHeaderTemplate\">\n <ng-container [ngTemplateOutlet]=\"column.headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #noHeaderTemplate>\n <div class=\"simple-grid-column-header-label\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [textContent]=\"column.headerText || ' '\"\n ></div>\n </ng-template>\n <div *ngIf=\"resizable && column.resizable\" class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\"\n ></div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"simple-grid-drag-drop-list\"\n [cdkDropListDisabled]=\"!dragDropEnabled\"\n [cdkDropListData]=\"data\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\">\n <tr class=\"simple-grid-row\" [class.selected]=\"rowIndex === selectedRowIndex && !editing\" observeVisibility\n [class.disabled]=\"isRowDisabled(row)\"\n [class.editing]=\"rowIndex === editRowIndex\" *ngFor=\"let row of (!!rowsPerPage ? (data | paginate: {itemsPerPage: rowsPerPage, currentPage: currentPage}) : data); last as last; let rowIndex = index\" cdkDrag\n (click)=\"handleClickRow($event, rowIndex, row)\" (dblclick)=\"handleDblClickRow($event, rowIndex, row)\" (visibilityChange)=\"rowVisible.next(row)\">\n <co-form-test class=\"simple-grid-row-form\">\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumns.length\">\n <co-simple-grid-cell\n [column]=\"columns[singleColumnIndex(row)]\"\n [row]=\"row\"\n [editMode]=\"false\"\n ></co-simple-grid-cell>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isSingleColumnRow(row)\">\n <ng-container *ngFor=\"let column of headerColumns; let columnIndex = index\">\n <td class=\"simple-grid-column-cell\" *ngIf=\"columnIndex !== singleColumnIndex(row)\">\n <co-simple-grid-cell\n [column]=\"column\"\n [row]=\"row\"\n [editMode]=\"inlineEdit && editing && rowIndex === editRowIndex\"\n [fieldEditMode]=\"editCellIndex === columnIndex\"\n (cellClick)=\"handleCellClick(columnIndex)\"\n ></co-simple-grid-cell>\n <div *ngIf=\"column.resizable\" class=\"simple-grid-column-sizer-placeholder\"></div>\n </td>\n </ng-container>\n </ng-container>\n </co-form-test>\n </tr>\n </tbody>\n </table>\n <co-pagination-bar *ngIf=\"data?.length > rowsPerPage\" class=\"pagination-bar\"\n [itemsPerPage]=\"rowsPerPage\"\n [currentPage]=\"currentPage\"\n [totalItems]=\"data.length\"\n [autoHide]=\"true\"\n (previousClick)=\"goToPreviousPage()\"\n (nextClick)=\"goToNextPage()\"\n (pageClick)=\"setCurrentPage($event)\"\n ></co-pagination-bar>\n ",
|
|
10119
10164
|
providers: [
|
|
10120
10165
|
FormMasterService
|
|
10121
10166
|
],
|