@colijnit/corecomponents_v12 12.0.75 → 12.0.77

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.
Files changed (25) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +109 -2
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12.d.ts +1 -0
  4. package/colijnit-corecomponents_v12.metadata.json +1 -1
  5. package/esm2015/colijnit-corecomponents_v12.js +2 -1
  6. package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.component.js +87 -0
  7. package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.module.js +19 -0
  8. package/esm2015/lib/components/filter-item/filter-item.component.js +2 -1
  9. package/esm2015/lib/components/input-checkbox/input-checkbox.component.js +5 -2
  10. package/esm2015/public-api.js +2 -1
  11. package/fesm2015/colijnit-corecomponents_v12.js +107 -2
  12. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  13. package/lib/components/checkmark-overlay/checkmark-overlay.component.d.ts +17 -0
  14. package/lib/components/checkmark-overlay/checkmark-overlay.module.d.ts +2 -0
  15. package/lib/components/checkmark-overlay/style/_layout.scss +118 -0
  16. package/lib/components/checkmark-overlay/style/_material-definition.scss +2 -0
  17. package/lib/components/checkmark-overlay/style/_theme.scss +20 -0
  18. package/lib/components/checkmark-overlay/style/material.scss +4 -0
  19. package/lib/components/input-checkbox/input-checkbox.component.d.ts +1 -0
  20. package/lib/components/input-checkbox/style/_layout.scss +9 -1
  21. package/lib/components/simple-grid/style/_layout.scss +1 -0
  22. package/lib/components/simple-grid/style/_material-definition.scss +2 -0
  23. package/lib/components/simple-grid/style/_theme.scss +1 -1
  24. package/package.json +1 -1
  25. package/public-api.d.ts +1 -0
@@ -6408,6 +6408,7 @@
6408
6408
  _this.formUserChangeListener = formUserChangeListener;
6409
6409
  _this.ngZoneWrapper = ngZoneWrapper;
6410
6410
  _this.elementRef = elementRef;
6411
+ _this.clickableLabel = true;
6411
6412
  _this.modelChange = new i0.EventEmitter();
6412
6413
  return _this;
6413
6414
  }
@@ -6430,7 +6431,7 @@
6430
6431
  InputCheckboxComponent.decorators = [
6431
6432
  { type: i0.Component, args: [{
6432
6433
  selector: "co-input-checkbox",
6433
- template: "\n <div class=\"checkbox\" (click)=\"handleModelChange($event)\" [class.checked]=\"model\">\n <div class=\"checkmark\" [class.show]=\"model\"></div>\n </div>\n <div class=\"label\" *ngIf=\"label\" [textContent]=\"label\" (click)=\"handleModelChange($event)\"></div>\n ",
6434
+ template: "\n <div class=\"checkbox\" (click)=\"handleModelChange($event)\" [class.checked]=\"model\">\n <div class=\"checkmark\" [class.show]=\"model\"></div>\n </div>\n <div class=\"label\" [class.clickable]=\"clickableLabel\" *ngIf=\"label\" [textContent]=\"label\"\n (click)=\"clickableLabel ? handleModelChange($event) : true\"></div>\n ",
6434
6435
  providers: [{
6435
6436
  provide: COMPONENT_INTERFACE_NAME,
6436
6437
  useExisting: i0.forwardRef(function () { return InputCheckboxComponent; })
@@ -6453,6 +6454,7 @@
6453
6454
  ]; };
6454
6455
  InputCheckboxComponent.propDecorators = {
6455
6456
  cssClass: [{ type: i0.Input }],
6457
+ clickableLabel: [{ type: i0.Input }],
6456
6458
  modelChange: [{ type: i0.Output }],
6457
6459
  showClass: [{ type: i0.HostBinding, args: ["class.co-input-checkbox",] }]
6458
6460
  };
@@ -11103,7 +11105,7 @@
11103
11105
  FilterItemComponent.decorators = [
11104
11106
  { type: i0.Component, args: [{
11105
11107
  selector: "co-filter-item",
11106
- template: "\n <div class=\"co-filter-item-header\">\n <co-collapsible\n [headerTitle]=\"placeholder\"\n [expandButtonLast]=\"true\"\n [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"\n [expanded]=\"expanded\"\n [showButton]=\"showButton\"\n [buttonText]=\"filterButtonLabel\"\n (buttonClicked)=\"onButtonClicked()\"\n >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\"\n (keydown)=\"showButton=true\" (click)=\"showButton=true\">\n <ng-content></ng-content>\n </div>\n <ng-template #collectionContent>\n <div class=\"co-filter-item-collection-content\">\n <co-input-text\n *ngIf=\"collection?.length > 10 || minSearchCharsToLoadCollection\"\n [placeholder]=\"searchPlaceholder\"\n [model]=\"filterText\"\n (modelChange)=\"applyFilter($event)\"\n >\n </co-input-text>\n <div class=\"no-results\" *ngIf=\"filteredCollection?.length === 0\">\n <span [textContent]=\"noResultsLabel\"></span>\n </div>\n <div class=\"co-filter-item-collection-results\">\n <ng-container\n *ngFor=\"let option of filteredCollection; let index = index\">\n <div class=\"co-filter-item-collection-result-item\" *ngIf=\"index < limitTo || showAllResults\">\n <co-input-checkbox *ngIf=\"!singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-checkbox>\n <co-input-radio-button *ngIf=\"singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-radio-button>\n <div class=\"co-filter-item-amount\" *ngIf=\"option.count\"\n [textContent]=\"option.count.toString() | append: ')' | prepend: ' ('\"\n ></div>\n </div>\n\n </ng-container>\n </div>\n <div class=\"co-filter-show-more-or-less\" *ngIf=\"!showAllResults\">\n <div class=\"co-filter-show-more clickable\"\n *ngIf=\"moreToShow()\">\n <a (click)=\"increaseLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"></co-icon>\n <span [textContent]=\"showMoreLabel\"></span>\n </a>\n </div>\n <div class=\"co-filter-show-less clickable\"\n *ngIf=\"lessToShow()\">\n <a (click)=\"setToInitialLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointUp)\"></co-icon>\n <span [textContent]=\"showLessLabel\"></span>\n </a>\n </div>\n </div>\n </div>\n </ng-template>\n </div>\n </co-collapsible>\n </div>\n\n ",
11108
+ template: "\n <div class=\"co-filter-item-header\">\n <co-collapsible\n [headerTitle]=\"placeholder\"\n [expandButtonLast]=\"true\"\n [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"\n [expanded]=\"expanded\"\n [showButton]=\"showButton\"\n [buttonText]=\"filterButtonLabel\"\n (buttonClicked)=\"onButtonClicked()\"\n >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\"\n (keydown)=\"showButton=true\" (click)=\"showButton=true\">\n <ng-content></ng-content>\n </div>\n <ng-template #collectionContent>\n <div class=\"co-filter-item-collection-content\">\n <co-input-text\n *ngIf=\"collection?.length > 10 || minSearchCharsToLoadCollection\"\n [placeholder]=\"searchPlaceholder\"\n [model]=\"filterText\"\n (modelChange)=\"applyFilter($event)\"\n >\n </co-input-text>\n <div class=\"no-results\" *ngIf=\"filteredCollection?.length === 0\">\n <span [textContent]=\"noResultsLabel\"></span>\n </div>\n <div class=\"co-filter-item-collection-results\">\n <ng-container\n *ngFor=\"let option of filteredCollection; let index = index\">\n <div class=\"co-filter-item-collection-result-item\" *ngIf=\"index < limitTo || showAllResults\">\n <co-input-checkbox *ngIf=\"!singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n [clickableLabel]=\"false\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-checkbox>\n <co-input-radio-button *ngIf=\"singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-radio-button>\n <div class=\"co-filter-item-amount\" *ngIf=\"option.count\"\n [textContent]=\"option.count.toString() | append: ')' | prepend: ' ('\"\n ></div>\n </div>\n\n </ng-container>\n </div>\n <div class=\"co-filter-show-more-or-less\" *ngIf=\"!showAllResults\">\n <div class=\"co-filter-show-more clickable\"\n *ngIf=\"moreToShow()\">\n <a (click)=\"increaseLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"></co-icon>\n <span [textContent]=\"showMoreLabel\"></span>\n </a>\n </div>\n <div class=\"co-filter-show-less clickable\"\n *ngIf=\"lessToShow()\">\n <a (click)=\"setToInitialLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointUp)\"></co-icon>\n <span [textContent]=\"showLessLabel\"></span>\n </a>\n </div>\n </div>\n </div>\n </ng-template>\n </div>\n </co-collapsible>\n </div>\n\n ",
11107
11109
  encapsulation: i0.ViewEncapsulation.None
11108
11110
  },] }
11109
11111
  ];
@@ -11425,6 +11427,109 @@
11425
11427
  },] }
11426
11428
  ];
11427
11429
 
11430
+ var CheckmarkOverlayComponent = /** @class */ (function () {
11431
+ function CheckmarkOverlayComponent(_renderer) {
11432
+ var _this = this;
11433
+ this._renderer = _renderer;
11434
+ this.showOverlay = false;
11435
+ this.showWrapper = false;
11436
+ this._visible = false;
11437
+ this._handleAnimationIteration = function (event) {
11438
+ _this.animateDivs.forEach(function (a) { return _this._renderer.removeClass(a.nativeElement, 'animate'); });
11439
+ event.currentTarget.removeEventListener('animationiteration', _this._handleAnimationIteration);
11440
+ };
11441
+ }
11442
+ Object.defineProperty(CheckmarkOverlayComponent.prototype, "content", {
11443
+ set: function (children) {
11444
+ this.animateDivs = children.toArray();
11445
+ this._checkAnimation();
11446
+ },
11447
+ enumerable: false,
11448
+ configurable: true
11449
+ });
11450
+ Object.defineProperty(CheckmarkOverlayComponent.prototype, "visible", {
11451
+ get: function () {
11452
+ return this._visible;
11453
+ },
11454
+ set: function (value) {
11455
+ var _this = this;
11456
+ if (value) {
11457
+ this.showOverlay = true;
11458
+ this.showWrapper = true;
11459
+ }
11460
+ else {
11461
+ setTimeout(function () { return _this.showOverlay = false; }, 800);
11462
+ setTimeout(function () { return _this.showWrapper = false; }, 600);
11463
+ }
11464
+ this._visible = value;
11465
+ this._checkAnimation();
11466
+ this._checkAnimationFinished();
11467
+ },
11468
+ enumerable: false,
11469
+ configurable: true
11470
+ });
11471
+ CheckmarkOverlayComponent.prototype.showClass = function () {
11472
+ return true;
11473
+ };
11474
+ CheckmarkOverlayComponent.prototype._checkAnimation = function () {
11475
+ var _this = this;
11476
+ if (this.visible && this.animateDivs) {
11477
+ this.animateDivs.forEach(function (a) { return _this._renderer.addClass(a.nativeElement, 'animate'); });
11478
+ }
11479
+ };
11480
+ CheckmarkOverlayComponent.prototype._checkAnimationFinished = function () {
11481
+ var _this = this;
11482
+ if (!this.visible && this.animateDivs) {
11483
+ this.animateDivs.forEach(function (a) {
11484
+ a.nativeElement.addEventListener('animationiteration', _this._handleAnimationIteration);
11485
+ });
11486
+ }
11487
+ };
11488
+ return CheckmarkOverlayComponent;
11489
+ }());
11490
+ CheckmarkOverlayComponent.decorators = [
11491
+ { type: i0.Component, args: [{
11492
+ selector: "co-checkmark-overlay",
11493
+ template: "\n <div *ngIf=\"showOverlay\">\n <div class=\"checkmark-overlay-wrapper\" *ngIf=\"showWrapper\" @showHideSaveCancel>\n <div class=\"checkmark-buttons-button save\" [class.finished]=\"!visible\">\n <div class=\"save-button-spinner\">\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n <div #animatediv></div>\n </div>\n <div class=\"spinner-checkmark\" *ngIf=\"!visible && successful\"></div>\n </div>\n </div>\n </div>\n ",
11494
+ animations: [
11495
+ animations.trigger('showHideSaveCancel', [
11496
+ animations.state('*', animations.style({ transform: 'scaleY(1)', opacity: 1 })),
11497
+ animations.state('void', animations.style({ transform: 'scaleY(0)', opacity: 0 })),
11498
+ animations.transition('void <=> *', animations.animate(200))
11499
+ ]),
11500
+ ],
11501
+ encapsulation: i0.ViewEncapsulation.None
11502
+ },] }
11503
+ ];
11504
+ CheckmarkOverlayComponent.ctorParameters = function () { return [
11505
+ { type: i0.Renderer2 }
11506
+ ]; };
11507
+ CheckmarkOverlayComponent.propDecorators = {
11508
+ content: [{ type: i0.ViewChildren, args: ['animatediv', { read: i0.ElementRef },] }],
11509
+ visible: [{ type: i0.Input }],
11510
+ successful: [{ type: i0.Input }],
11511
+ showClass: [{ type: i0.HostBinding, args: ["class.co-checkmark-overlay",] }]
11512
+ };
11513
+
11514
+ var CheckmarkOverlayModule = /** @class */ (function () {
11515
+ function CheckmarkOverlayModule() {
11516
+ }
11517
+ return CheckmarkOverlayModule;
11518
+ }());
11519
+ CheckmarkOverlayModule.decorators = [
11520
+ { type: i0.NgModule, args: [{
11521
+ imports: [
11522
+ common.CommonModule
11523
+ ],
11524
+ declarations: [
11525
+ CheckmarkOverlayComponent
11526
+ ],
11527
+ exports: [
11528
+ CheckmarkOverlayComponent
11529
+ ]
11530
+ },] }
11531
+ ];
11532
+
11428
11533
  var ColorSequenceService = /** @class */ (function () {
11429
11534
  function ColorSequenceService() {
11430
11535
  this.colors = new Map();
@@ -11469,6 +11574,7 @@
11469
11574
  exports.CarouselComponent = CarouselComponent;
11470
11575
  exports.CarouselHammerConfig = CarouselHammerConfig;
11471
11576
  exports.CarouselModule = CarouselModule;
11577
+ exports.CheckmarkOverlayModule = CheckmarkOverlayModule;
11472
11578
  exports.ClickoutsideModule = ClickoutsideModule;
11473
11579
  exports.CoDialogComponent = CoDialogComponent;
11474
11580
  exports.CoDialogModule = CoDialogModule;
@@ -11566,6 +11672,7 @@
11566
11672
  exports["ɵbe"] = PrependPipe;
11567
11673
  exports["ɵbf"] = ClickOutsideDirective;
11568
11674
  exports["ɵbg"] = ClickOutsideMasterService;
11675
+ exports["ɵbh"] = CheckmarkOverlayComponent;
11569
11676
  exports["ɵc"] = CoRippleDirective;
11570
11677
  exports["ɵd"] = CoViewportRulerService;
11571
11678
  exports["ɵe"] = CoScrollDispatcherService;