@colijnit/corecomponents_v12 12.0.55 → 12.0.58

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.
@@ -6352,7 +6352,7 @@
6352
6352
  InputDatePickerComponent.decorators = [
6353
6353
  { type: core.Component, args: [{
6354
6354
  selector: "co-input-date",
6355
- template: "\n <ejs-datepicker #ejsDatePicker\n floatLabelType=\"Auto\"\n [format]=\"dateFormat\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"model\"\n (ngModelChange)=\"modelChange.emit($event)\"\n ></ejs-datepicker>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
6355
+ template: "\n <ejs-datepicker #ejsDatePicker\n floatLabelType=\"Auto\"\n [format]=\"dateFormat\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"model\"\n [readonly]=\"readonly\"\n (ngModelChange)=\"modelChange.emit($event)\"\n ></ejs-datepicker>\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
6356
6356
  providers: [{
6357
6357
  provide: COMPONENT_INTERFACE_NAME, useExisting: core.forwardRef(function () { return InputDatePickerComponent; })
6358
6358
  }, {
@@ -6382,6 +6382,115 @@
6382
6382
  showClass: [{ type: core.HostBinding, args: ["class.co-input-date",] }]
6383
6383
  };
6384
6384
 
6385
+ var CommitButtonsComponent = /** @class */ (function () {
6386
+ function CommitButtonsComponent(_renderer) {
6387
+ var _this = this;
6388
+ this._renderer = _renderer;
6389
+ this.cancelClick = new core.EventEmitter();
6390
+ this.commitClick = new core.EventEmitter();
6391
+ this._committing = false;
6392
+ this._commitFinished = false;
6393
+ this._handleAnimationIteration = function (event) {
6394
+ _this._renderer.removeClass(event.currentTarget, 'animate');
6395
+ event.currentTarget.removeEventListener('animationiteration', _this._handleAnimationIteration);
6396
+ // elem.removeEventListener('webkitAnimationIteration', () => this._handleAnimationIteration(elem));
6397
+ };
6398
+ }
6399
+ Object.defineProperty(CommitButtonsComponent.prototype, "content", {
6400
+ set: function (children) {
6401
+ this.animateDivs = children.toArray();
6402
+ this._checkAnimation();
6403
+ },
6404
+ enumerable: false,
6405
+ configurable: true
6406
+ });
6407
+ Object.defineProperty(CommitButtonsComponent.prototype, "committing", {
6408
+ get: function () {
6409
+ return this._committing;
6410
+ },
6411
+ set: function (value) {
6412
+ this._committing = value;
6413
+ this._checkAnimation();
6414
+ },
6415
+ enumerable: false,
6416
+ configurable: true
6417
+ });
6418
+ Object.defineProperty(CommitButtonsComponent.prototype, "commitFinished", {
6419
+ get: function () {
6420
+ return this._commitFinished;
6421
+ },
6422
+ set: function (value) {
6423
+ this._commitFinished = value;
6424
+ this._checkAnimationFinished();
6425
+ },
6426
+ enumerable: false,
6427
+ configurable: true
6428
+ });
6429
+ CommitButtonsComponent.prototype.showClass = function () {
6430
+ return true;
6431
+ };
6432
+ CommitButtonsComponent.prototype._checkAnimation = function () {
6433
+ var _this = this;
6434
+ if (this.committing && this.animateDivs) {
6435
+ this.animateDivs.forEach(function (a) { return _this._renderer.addClass(a.nativeElement, 'animate'); });
6436
+ }
6437
+ };
6438
+ CommitButtonsComponent.prototype._checkAnimationFinished = function () {
6439
+ var _this = this;
6440
+ if (this.commitFinished && this.animateDivs) {
6441
+ this.animateDivs.forEach(function (a) {
6442
+ a.nativeElement.addEventListener('animationiteration', _this._handleAnimationIteration);
6443
+ // a.nativeElement.addEventListener('webkitAnimationIteration', (event) => this._handleAnimationIteration(event));
6444
+ });
6445
+ }
6446
+ };
6447
+ return CommitButtonsComponent;
6448
+ }());
6449
+ CommitButtonsComponent.decorators = [
6450
+ { type: core.Component, args: [{
6451
+ selector: "co-commit-buttons",
6452
+ template: "\n <div class=\"commit-buttons-wrapper\" @showHideSaveCancel>\n <div class=\"commit-buttons-button save\" [class.finished]=\"commitFinished\"\n (click)=\"commitClick.emit($event)\">\n <div class=\"save-button-spinner\" *ngIf=\"committing || commitFinished\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <div class=\"spinner-checkmark\" *ngIf=\"!committing || commitFinished\"></div>\n </div>\n <div class=\"commit-buttons-button cancel\" (click)=\"cancelClick.emit($event)\">\n <div class=\"cancel-button\"></div>\n </div>\n </div>\n ",
6453
+ animations: [
6454
+ animations.trigger('showHideSaveCancel', [
6455
+ animations.state('*', animations.style({ transform: 'scaleY(1)', opacity: 1 })),
6456
+ animations.state('void', animations.style({ transform: 'scaleY(0)', opacity: 0 })),
6457
+ animations.transition('void <=> *', animations.animate(200))
6458
+ ]),
6459
+ ],
6460
+ encapsulation: core.ViewEncapsulation.None
6461
+ },] }
6462
+ ];
6463
+ CommitButtonsComponent.ctorParameters = function () { return [
6464
+ { type: core.Renderer2 }
6465
+ ]; };
6466
+ CommitButtonsComponent.propDecorators = {
6467
+ content: [{ type: core.ViewChildren, args: ['animatediv', { read: core.ElementRef },] }],
6468
+ committing: [{ type: core.Input }],
6469
+ commitFinished: [{ type: core.Input }],
6470
+ cancelClick: [{ type: core.Output }],
6471
+ commitClick: [{ type: core.Output }],
6472
+ showClass: [{ type: core.HostBinding, args: ["class.co-commit-buttons",] }]
6473
+ };
6474
+
6475
+ var CommitButtonsModule = /** @class */ (function () {
6476
+ function CommitButtonsModule() {
6477
+ }
6478
+ return CommitButtonsModule;
6479
+ }());
6480
+ CommitButtonsModule.decorators = [
6481
+ { type: core.NgModule, args: [{
6482
+ imports: [
6483
+ common.CommonModule
6484
+ ],
6485
+ declarations: [
6486
+ CommitButtonsComponent
6487
+ ],
6488
+ exports: [
6489
+ CommitButtonsComponent
6490
+ ]
6491
+ },] }
6492
+ ];
6493
+
6385
6494
  var InputDatePickerModule = /** @class */ (function () {
6386
6495
  function InputDatePickerModule() {
6387
6496
  }
@@ -6395,7 +6504,8 @@
6395
6504
  forms.FormsModule,
6396
6505
  IconModule,
6397
6506
  AppendPipeModule,
6398
- ej2AngularCalendars.DatePickerModule
6507
+ ej2AngularCalendars.DatePickerModule,
6508
+ CommitButtonsModule
6399
6509
  ],
6400
6510
  schemas: [
6401
6511
  core.NO_ERRORS_SCHEMA
@@ -6434,7 +6544,7 @@
6434
6544
  InputDateRangePickerComponent.decorators = [
6435
6545
  { type: core.Component, args: [{
6436
6546
  selector: "co-input-date-range",
6437
- template: "\n <ejs-daterangepicker\n [format]=\"dateFormat\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"model\"\n (ngModelChange)=\"rangeChange()\"\n (close)=\"close.next($event)\"\n (select)=\"select.next($event)\"\n (cleared)=\"cleared.next($event)\"\n [(startDate)]=\"startDate\"\n [(endDate)]=\"endDate\"\n ></ejs-daterangepicker>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
6547
+ template: "\n <ejs-daterangepicker\n [format]=\"dateFormat\"\n [placeholder]=\"placeholder\"\n [ngModel]=\"model\"\n [(startDate)]=\"startDate\"\n [(endDate)]=\"endDate\"\n [readonly]=\"readonly\"\n (ngModelChange)=\"rangeChange()\"\n (close)=\"close.next($event)\"\n (select)=\"select.next($event)\"\n (cleared)=\"cleared.next($event)\"\n ></ejs-daterangepicker>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
6438
6548
  encapsulation: core.ViewEncapsulation.None
6439
6549
  },] }
6440
6550
  ];
@@ -7321,115 +7431,6 @@
7321
7431
  },] }
7322
7432
  ];
7323
7433
 
7324
- var CommitButtonsComponent = /** @class */ (function () {
7325
- function CommitButtonsComponent(_renderer) {
7326
- var _this = this;
7327
- this._renderer = _renderer;
7328
- this.cancelClick = new core.EventEmitter();
7329
- this.commitClick = new core.EventEmitter();
7330
- this._committing = false;
7331
- this._commitFinished = false;
7332
- this._handleAnimationIteration = function (event) {
7333
- _this._renderer.removeClass(event.currentTarget, 'animate');
7334
- event.currentTarget.removeEventListener('animationiteration', _this._handleAnimationIteration);
7335
- // elem.removeEventListener('webkitAnimationIteration', () => this._handleAnimationIteration(elem));
7336
- };
7337
- }
7338
- Object.defineProperty(CommitButtonsComponent.prototype, "content", {
7339
- set: function (children) {
7340
- this.animateDivs = children.toArray();
7341
- this._checkAnimation();
7342
- },
7343
- enumerable: false,
7344
- configurable: true
7345
- });
7346
- Object.defineProperty(CommitButtonsComponent.prototype, "committing", {
7347
- get: function () {
7348
- return this._committing;
7349
- },
7350
- set: function (value) {
7351
- this._committing = value;
7352
- this._checkAnimation();
7353
- },
7354
- enumerable: false,
7355
- configurable: true
7356
- });
7357
- Object.defineProperty(CommitButtonsComponent.prototype, "commitFinished", {
7358
- get: function () {
7359
- return this._commitFinished;
7360
- },
7361
- set: function (value) {
7362
- this._commitFinished = value;
7363
- this._checkAnimationFinished();
7364
- },
7365
- enumerable: false,
7366
- configurable: true
7367
- });
7368
- CommitButtonsComponent.prototype.showClass = function () {
7369
- return true;
7370
- };
7371
- CommitButtonsComponent.prototype._checkAnimation = function () {
7372
- var _this = this;
7373
- if (this.committing && this.animateDivs) {
7374
- this.animateDivs.forEach(function (a) { return _this._renderer.addClass(a.nativeElement, 'animate'); });
7375
- }
7376
- };
7377
- CommitButtonsComponent.prototype._checkAnimationFinished = function () {
7378
- var _this = this;
7379
- if (this.commitFinished && this.animateDivs) {
7380
- this.animateDivs.forEach(function (a) {
7381
- a.nativeElement.addEventListener('animationiteration', _this._handleAnimationIteration);
7382
- // a.nativeElement.addEventListener('webkitAnimationIteration', (event) => this._handleAnimationIteration(event));
7383
- });
7384
- }
7385
- };
7386
- return CommitButtonsComponent;
7387
- }());
7388
- CommitButtonsComponent.decorators = [
7389
- { type: core.Component, args: [{
7390
- selector: "co-commit-buttons",
7391
- template: "\n <div class=\"commit-buttons-wrapper\" @showHideSaveCancel>\n <div class=\"commit-buttons-button save\" [class.finished]=\"commitFinished\"\n (click)=\"commitClick.emit($event)\">\n <div class=\"save-button-spinner\" *ngIf=\"committing || commitFinished\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <div class=\"spinner-checkmark\" *ngIf=\"!committing || commitFinished\"></div>\n </div>\n <div class=\"commit-buttons-button cancel\" (click)=\"cancelClick.emit($event)\">\n <div class=\"cancel-button\"></div>\n </div>\n </div>\n ",
7392
- animations: [
7393
- animations.trigger('showHideSaveCancel', [
7394
- animations.state('*', animations.style({ transform: 'scaleY(1)', opacity: 1 })),
7395
- animations.state('void', animations.style({ transform: 'scaleY(0)', opacity: 0 })),
7396
- animations.transition('void <=> *', animations.animate(200))
7397
- ]),
7398
- ],
7399
- encapsulation: core.ViewEncapsulation.None
7400
- },] }
7401
- ];
7402
- CommitButtonsComponent.ctorParameters = function () { return [
7403
- { type: core.Renderer2 }
7404
- ]; };
7405
- CommitButtonsComponent.propDecorators = {
7406
- content: [{ type: core.ViewChildren, args: ['animatediv', { read: core.ElementRef },] }],
7407
- committing: [{ type: core.Input }],
7408
- commitFinished: [{ type: core.Input }],
7409
- cancelClick: [{ type: core.Output }],
7410
- commitClick: [{ type: core.Output }],
7411
- showClass: [{ type: core.HostBinding, args: ["class.co-commit-buttons",] }]
7412
- };
7413
-
7414
- var CommitButtonsModule = /** @class */ (function () {
7415
- function CommitButtonsModule() {
7416
- }
7417
- return CommitButtonsModule;
7418
- }());
7419
- CommitButtonsModule.decorators = [
7420
- { type: core.NgModule, args: [{
7421
- imports: [
7422
- common.CommonModule
7423
- ],
7424
- declarations: [
7425
- CommitButtonsComponent
7426
- ],
7427
- exports: [
7428
- CommitButtonsComponent
7429
- ]
7430
- },] }
7431
- ];
7432
-
7433
7434
  var InputTextModule = /** @class */ (function () {
7434
7435
  function InputTextModule() {
7435
7436
  }
@@ -9821,25 +9822,33 @@
9821
9822
  this.nextLabel = 'Volgende pagina';
9822
9823
  this.currentPage = 1;
9823
9824
  this.itemsPerPage = 20;
9824
- this.totalItems = 1;
9825
9825
  this.paginationRange = 8;
9826
9826
  this.autoHide = false;
9827
9827
  this.previousClick = new core.EventEmitter();
9828
9828
  this.nextClick = new core.EventEmitter();
9829
9829
  this.pageClick = new core.EventEmitter();
9830
+ this._totalItems = 20;
9830
9831
  this.pages = [];
9831
9832
  }
9833
+ Object.defineProperty(PaginationBarComponent.prototype, "totalItems", {
9834
+ get: function () {
9835
+ return this._totalItems;
9836
+ },
9837
+ set: function (value) {
9838
+ this._totalItems = value;
9839
+ this.totalPages = Math.ceil(this.totalItems / this.itemsPerPage);
9840
+ },
9841
+ enumerable: false,
9842
+ configurable: true
9843
+ });
9832
9844
  PaginationBarComponent.prototype.showClass = function () {
9833
9845
  return true;
9834
9846
  };
9835
9847
  PaginationBarComponent.prototype.ngOnInit = function () {
9836
- this.totalPages = Math.ceil(this.totalItems / this.itemsPerPage);
9837
9848
  this.pages = this._createPageArray();
9838
9849
  };
9839
9850
  PaginationBarComponent.prototype.ngOnChanges = function (changes) {
9840
- if (changes['currentPage'].currentValue !== changes['currentPage'].previousValue) {
9841
- this.pages = this._createPageArray();
9842
- }
9851
+ this.pages = this._createPageArray();
9843
9852
  };
9844
9853
  PaginationBarComponent.prototype.isOnFirstPage = function () {
9845
9854
  return this.currentPage === 1;
@@ -11150,10 +11159,10 @@
11150
11159
  exports["ɵq"] = BaseGridComponent;
11151
11160
  exports["ɵr"] = AppendPipeModule;
11152
11161
  exports["ɵs"] = AppendPipe;
11153
- exports["ɵt"] = ValidationErrorModule;
11154
- exports["ɵu"] = ValidationErrorComponent;
11155
- exports["ɵv"] = CommitButtonsModule;
11156
- exports["ɵw"] = CommitButtonsComponent;
11162
+ exports["ɵt"] = CommitButtonsModule;
11163
+ exports["ɵu"] = CommitButtonsComponent;
11164
+ exports["ɵv"] = ValidationErrorModule;
11165
+ exports["ɵw"] = ValidationErrorComponent;
11157
11166
  exports["ɵx"] = PopupShowerService;
11158
11167
  exports["ɵy"] = BaseSimpleGridComponent;
11159
11168
  exports["ɵz"] = ObserveVisibilityDirective;