@colijnit/corecomponents_v12 12.0.69 → 12.0.71

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 (34) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +31 -21
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12.metadata.json +1 -1
  4. package/esm2015/lib/components/co-dialog/co-dialog.component.js +4 -2
  5. package/esm2015/lib/components/collapsible/collapsible.component.js +21 -6
  6. package/esm2015/lib/components/collapsible/collapsible.module.js +4 -2
  7. package/esm2015/lib/components/filter-item/filter-item.component.js +19 -2
  8. package/esm2015/lib/components/input-combo-box/input-combo-box.component.js +1 -3
  9. package/esm2015/lib/components/input-listbox/input-listbox.component.js +2 -4
  10. package/esm2015/lib/components/input-search/input-search.component.js +1 -6
  11. package/esm2015/lib/components/input-text/input-text.component.js +2 -4
  12. package/esm2015/lib/components/input-textarea/input-textarea.component.js +2 -4
  13. package/fesm2015/colijnit-corecomponents_v12.js +47 -25
  14. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  15. package/lib/components/co-dialog/co-dialog.component.d.ts +1 -1
  16. package/lib/components/collapsible/collapsible.component.d.ts +4 -0
  17. package/lib/components/collapsible/style/_layout.scss +20 -2
  18. package/lib/components/collapsible/style/_material-definition.scss +6 -0
  19. package/lib/components/collapsible/style/_theme.scss +4 -0
  20. package/lib/components/filter-item/filter-item.component.d.ts +5 -0
  21. package/lib/components/filter-item/style/_material-definition.scss +6 -3
  22. package/lib/components/input-combo-box/input-combo-box.component.d.ts +0 -1
  23. package/lib/components/input-listbox/input-listbox.component.d.ts +0 -1
  24. package/lib/components/input-search/input-search.component.d.ts +0 -1
  25. package/lib/components/input-search/style/_layout.scss +13 -0
  26. package/lib/components/input-search/style/_material-definition.scss +1 -0
  27. package/lib/components/input-text/input-text.component.d.ts +0 -1
  28. package/lib/components/input-textarea/input-textarea.component.d.ts +0 -1
  29. package/lib/components/pagination/style/_material-definition.scss +1 -1
  30. package/lib/components/pagination-bar/style/_layout.scss +1 -1
  31. package/lib/components/pagination-bar/style/_material-definition.scss +1 -1
  32. package/lib/modules/pagination/style/_layout.scss +1 -1
  33. package/lib/style/_variables.scss +3 -2
  34. package/package.json +1 -1
@@ -3680,12 +3680,12 @@
3680
3680
  this.icons = exports.CoreComponentsIcon;
3681
3681
  this.showCloseIcon = true;
3682
3682
  this.modal = false;
3683
+ this.show = false;
3683
3684
  this.borderless = false;
3684
3685
  this.closeClick = new core.EventEmitter();
3685
3686
  this.overlayClick = new core.EventEmitter();
3686
3687
  this.isTouch = false;
3687
3688
  this.mobile = false;
3688
- this.show = false;
3689
3689
  }
3690
3690
  CoDialogComponent.prototype.showClass = function () {
3691
3691
  return true;
@@ -3697,6 +3697,7 @@
3697
3697
  }
3698
3698
  };
3699
3699
  CoDialogComponent.prototype.ngOnInit = function () {
3700
+ this.show = false;
3700
3701
  this._checkDevice();
3701
3702
  this.show = true;
3702
3703
  };
@@ -3742,6 +3743,7 @@
3742
3743
  footerTemplate: [{ type: core.Input }],
3743
3744
  showCloseIcon: [{ type: core.Input }],
3744
3745
  modal: [{ type: core.Input }],
3746
+ show: [{ type: core.Input }],
3745
3747
  borderless: [{ type: core.HostBinding, args: ['class.borderless',] }, { type: core.Input }],
3746
3748
  closeClick: [{ type: core.Output }],
3747
3749
  overlayClick: [{ type: core.Output }],
@@ -4217,6 +4219,7 @@
4217
4219
  this.expandButtonLast = false;
4218
4220
  this.expanded = false;
4219
4221
  this.expandedChange = new core.EventEmitter();
4222
+ this.buttonClicked = new core.EventEmitter();
4220
4223
  }
4221
4224
  CollapsibleComponent.prototype.showClass = function () {
4222
4225
  return true;
@@ -4233,12 +4236,15 @@
4233
4236
  this.expanded = !this.expanded;
4234
4237
  this.expandedChange.next(this.expanded);
4235
4238
  };
4239
+ CollapsibleComponent.prototype.onButtonClick = function () {
4240
+ this.buttonClicked.emit();
4241
+ };
4236
4242
  return CollapsibleComponent;
4237
4243
  }());
4238
4244
  CollapsibleComponent.decorators = [
4239
4245
  { type: core.Component, args: [{
4240
4246
  selector: "co-collapsible",
4241
- template: "\n <div class=\"collapsible-header\" [class.end]=\"expandButtonLast\" (click)=\"changeExpanded()\">\n <div class=\"expand-icon-wrapper\" [class.expanded]=\"expanded\" *ngIf=\"!expandButtonLast\">\n <co-icon class=\"expand-icon\" [iconData]=\"iconData\"></co-icon>\n </div>\n <div class=\"collapsible-title\" [textContent]=\"headerTitle\"></div>\n <div class=\"expand-icon-wrapper\" [class.expanded]=\"expanded\" *ngIf=\"expandButtonLast\">\n <co-icon class=\"expand-icon\" [iconData]=\"iconData\"></co-icon>\n </div>\n </div>\n <div class=\"collapsible-content\" *ngIf=\"expanded\" @showHideContent>\n <ng-content></ng-content>\n </div>\n ",
4247
+ template: "\n <div class=\"collapsible-header\" [class.end]=\"expandButtonLast\" (click)=\"changeExpanded()\">\n <div class=\"collapsible-header-start\">\n <div class=\"expand-icon-wrapper\" [class.expanded]=\"expanded\" *ngIf=\"!expandButtonLast\">\n <co-icon class=\"expand-icon\" [iconData]=\"iconData\"></co-icon>\n </div>\n <div class=\"collapsible-title\" [textContent]=\"headerTitle\"></div>\n </div>\n <div class=\"collapsible-header-end\">\n <div class=\"collapsible-button-wrapper\" *ngIf=\"showButton !== undefined\" (click)=\"$event.stopPropagation()\">\n <button class=\"collapsible-button\" *ngIf=\"showButton\" [textContent]=\"buttonText\"\n (click)=\"onButtonClick()\"></button>\n </div>\n <div class=\"expand-icon-wrapper\" [class.expanded]=\"expanded\" *ngIf=\"expandButtonLast\">\n <co-icon class=\"expand-icon\" [iconData]=\"iconData\"></co-icon>\n </div>\n </div>\n </div>\n <div class=\"collapsible-content\" *ngIf=\"expanded\" @showHideContent>\n <ng-content></ng-content>\n </div>\n ",
4242
4248
  animations: [
4243
4249
  animations.trigger('showHideContent', [
4244
4250
  animations.state('*', animations.style({ height: '*' })),
@@ -4255,10 +4261,13 @@
4255
4261
  ]; };
4256
4262
  CollapsibleComponent.propDecorators = {
4257
4263
  headerTitle: [{ type: core.Input }],
4264
+ buttonText: [{ type: core.Input }],
4258
4265
  iconData: [{ type: core.Input }],
4259
4266
  expandButtonLast: [{ type: core.Input }],
4267
+ showButton: [{ type: core.Input }],
4260
4268
  expanded: [{ type: core.Input }],
4261
4269
  expandedChange: [{ type: core.Output }],
4270
+ buttonClicked: [{ type: core.Output }],
4262
4271
  showClass: [{ type: core.HostBinding, args: ["class.co-collapsible",] }],
4263
4272
  onHostClick: [{ type: core.HostListener, args: ["click", ["$event"],] }]
4264
4273
  };
@@ -4272,7 +4281,8 @@
4272
4281
  { type: core.NgModule, args: [{
4273
4282
  imports: [
4274
4283
  common.CommonModule,
4275
- IconModule
4284
+ IconModule,
4285
+ ButtonModule
4276
4286
  ],
4277
4287
  declarations: [CollapsibleComponent],
4278
4288
  exports: [CollapsibleComponent]
@@ -6583,7 +6593,6 @@
6583
6593
  _this.shopPopup = true;
6584
6594
  _this.valueChange = new core.EventEmitter();
6585
6595
  _this.isSmall = false;
6586
- _this.customHeight = false;
6587
6596
  _super.prototype._markAsOnPush.call(_this);
6588
6597
  return _this;
6589
6598
  }
@@ -6630,7 +6639,6 @@
6630
6639
  popupWidth: [{ type: core.Input }],
6631
6640
  valueChange: [{ type: core.Output }],
6632
6641
  isSmall: [{ type: core.HostBinding, args: ['class.is-small',] }, { type: core.Input }],
6633
- customHeight: [{ type: core.HostBinding, args: ['class.custom-height',] }, { type: core.Input }],
6634
6642
  showClass: [{ type: core.HostBinding, args: ["class.co-input-combo-box",] }]
6635
6643
  };
6636
6644
 
@@ -6958,7 +6966,6 @@
6958
6966
  // this._model = value;
6959
6967
  // }
6960
6968
  _this.collection = [];
6961
- _this.customHeight = true;
6962
6969
  _this.selectionSettings = { mode: 'Multiple' };
6963
6970
  return _this;
6964
6971
  }
@@ -7024,8 +7031,7 @@
7024
7031
  singleSelect: [{ type: core.Input }],
7025
7032
  showCheckbox: [{ type: core.Input }],
7026
7033
  showSelectAll: [{ type: core.Input }],
7027
- showClass: [{ type: core.HostBinding, args: ['class.co-input-listbox',] }],
7028
- customHeight: [{ type: core.HostBinding, args: ['class.custom-height',] }]
7034
+ showClass: [{ type: core.HostBinding, args: ['class.co-input-listbox',] }]
7029
7035
  };
7030
7036
 
7031
7037
  ej2Base.enableRipple(true);
@@ -7691,7 +7697,6 @@
7691
7697
  _this.hasOwnLabel = true;
7692
7698
  _this.hideArrowButtons = false;
7693
7699
  _this.isSmall = false;
7694
- _this.customHeight = false;
7695
7700
  _super.prototype._markAsOnPush.call(_this);
7696
7701
  return _this;
7697
7702
  }
@@ -7771,8 +7776,7 @@
7771
7776
  hasRightIcon: [{ type: core.HostBinding, args: ['class.has-right-icon',] }],
7772
7777
  hasOwnLabel: [{ type: core.HostBinding, args: ["class.has-own-label",] }],
7773
7778
  hideArrowButtons: [{ type: core.Input }, { type: core.HostBinding, args: ['class.hideArrows',] }],
7774
- isSmall: [{ type: core.HostBinding, args: ['class.is-small',] }, { type: core.Input }],
7775
- customHeight: [{ type: core.HostBinding, args: ['class.custom-height',] }, { type: core.Input }]
7779
+ isSmall: [{ type: core.HostBinding, args: ['class.is-small',] }, { type: core.Input }]
7776
7780
  };
7777
7781
 
7778
7782
  var ValidationErrorModule = /** @class */ (function () {
@@ -7919,7 +7923,6 @@
7919
7923
  _this.search = new core.EventEmitter();
7920
7924
  _this.useLeftIcon = false;
7921
7925
  _this.useRightIcon = false;
7922
- _this.customHeight = false;
7923
7926
  _this.noIcon = false;
7924
7927
  _this.isSmall = false;
7925
7928
  return _this;
@@ -7951,7 +7954,6 @@
7951
7954
  search: [{ type: core.Output }],
7952
7955
  useLeftIcon: [{ type: core.Input }],
7953
7956
  useRightIcon: [{ type: core.Input }],
7954
- customHeight: [{ type: core.Input }],
7955
7957
  noIcon: [{ type: core.HostBinding, args: ['class.no-icon',] }, { type: core.Input }],
7956
7958
  isSmall: [{ type: core.HostBinding, args: ['class.is-small',] }, { type: core.Input }],
7957
7959
  showClass: [{ type: core.HostBinding, args: ['class.co-input-search',] }]
@@ -7961,10 +7963,7 @@
7961
7963
  ], InputSearchComponent.prototype, "useLeftIcon", void 0);
7962
7964
  __decorate([
7963
7965
  InputBoolean()
7964
- ], InputSearchComponent.prototype, "useRightIcon", void 0);
7965
- __decorate([
7966
- InputBoolean()
7967
- ], InputSearchComponent.prototype, "customHeight", void 0);
7966
+ ], InputSearchComponent.prototype, "useRightIcon", void 0);
7968
7967
 
7969
7968
  var InputSearchModule = /** @class */ (function () {
7970
7969
  function InputSearchModule() {
@@ -7996,7 +7995,6 @@
7996
7995
  _this.elementRef = elementRef;
7997
7996
  _this.placeholder = "";
7998
7997
  _this.hasOwnLabel = true;
7999
- _this.customHeight = true;
8000
7998
  _super.prototype._markAsOnPush.call(_this);
8001
7999
  return _this;
8002
8000
  }
@@ -8030,8 +8028,7 @@
8030
8028
  InputTextareaComponent.propDecorators = {
8031
8029
  placeholder: [{ type: core.Input }],
8032
8030
  showClass: [{ type: core.HostBinding, args: ["class.co-input-textarea",] }],
8033
- hasOwnLabel: [{ type: core.HostBinding, args: ["class.has-own-label",] }],
8034
- customHeight: [{ type: core.HostBinding, args: ['class.custom-height',] }]
8031
+ hasOwnLabel: [{ type: core.HostBinding, args: ["class.has-own-label",] }]
8035
8032
  };
8036
8033
 
8037
8034
  var InputTextareaModule = /** @class */ (function () {
@@ -10976,14 +10973,17 @@
10976
10973
  // Set to true to show all results. Set to false to get 'show more' and 'show less' buttons to expand and contract.
10977
10974
  this.showAllResults = false;
10978
10975
  this.singleSelect = false;
10976
+ this.filterButtonLabel = "Search";
10979
10977
  this.searchPlaceholder = 'Search...';
10980
10978
  this.showMoreLabel = 'Show more';
10981
10979
  this.showLessLabel = 'Show less';
10982
10980
  this.noResultsLabel = "No results";
10983
10981
  this.collectionChange = new core.EventEmitter();
10982
+ this.filterButtonClicked = new core.EventEmitter();
10984
10983
  this.filteredCollection = [];
10985
10984
  this.limitTo = 10;
10986
10985
  this.filterText = "";
10986
+ this.showButton = false;
10987
10987
  this._collection = [];
10988
10988
  }
10989
10989
  Object.defineProperty(FilterItemComponent.prototype, "collection", {
@@ -11003,6 +11003,7 @@
11003
11003
  };
11004
11004
  FilterItemComponent.prototype.ngOnInit = function () {
11005
11005
  this.setToInitialLimit();
11006
+ this.showButton = this.valueSelected();
11006
11007
  };
11007
11008
  FilterItemComponent.prototype.setToInitialLimit = function () {
11008
11009
  this.limitTo = this.initialLimit;
@@ -11025,6 +11026,7 @@
11025
11026
  return ((_a = this.filteredCollection) === null || _a === void 0 ? void 0 : _a.length) <= this.limitTo && ((_b = this.filteredCollection) === null || _b === void 0 ? void 0 : _b.length) > this.initialLimit;
11026
11027
  };
11027
11028
  FilterItemComponent.prototype.handleModelChange = function (model) {
11029
+ this.showButton = true;
11028
11030
  if (this.singleSelect) {
11029
11031
  this.collection.forEach(function (m) {
11030
11032
  if (m.code !== model.code && m.description !== model.description) {
@@ -11035,6 +11037,9 @@
11035
11037
  model.checked = !model.checked;
11036
11038
  this.collectionChange.emit(this.collection);
11037
11039
  };
11040
+ FilterItemComponent.prototype.valueSelected = function () {
11041
+ return !!this.collection.find(function (c) { return c.checked; });
11042
+ };
11038
11043
  // Applies filter to the collection.
11039
11044
  FilterItemComponent.prototype.applyFilter = function (text) {
11040
11045
  var _a, _b;
@@ -11079,12 +11084,15 @@
11079
11084
  });
11080
11085
  });
11081
11086
  };
11087
+ FilterItemComponent.prototype.onButtonClicked = function () {
11088
+ this.filterButtonClicked.emit();
11089
+ };
11082
11090
  return FilterItemComponent;
11083
11091
  }());
11084
11092
  FilterItemComponent.decorators = [
11085
11093
  { type: core.Component, args: [{
11086
11094
  selector: "co-filter-item",
11087
- 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 >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\">\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 [name]=\"'radiogroup'\"\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 ",
11095
+ 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 [name]=\"'radiogroup'\"\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 ",
11088
11096
  encapsulation: core.ViewEncapsulation.None
11089
11097
  },] }
11090
11098
  ];
@@ -11101,11 +11109,13 @@
11101
11109
  customContent: [{ type: core.Input }],
11102
11110
  showAllResults: [{ type: core.Input }],
11103
11111
  singleSelect: [{ type: core.Input }],
11112
+ filterButtonLabel: [{ type: core.Input }],
11104
11113
  searchPlaceholder: [{ type: core.Input }],
11105
11114
  showMoreLabel: [{ type: core.Input }],
11106
11115
  showLessLabel: [{ type: core.Input }],
11107
11116
  noResultsLabel: [{ type: core.Input }],
11108
11117
  collectionChange: [{ type: core.Output }],
11118
+ filterButtonClicked: [{ type: core.Output }],
11109
11119
  showClass: [{ type: core.HostBinding, args: ["class.co-filter-item",] }]
11110
11120
  };
11111
11121