@colijnit/corecomponents_v12 12.0.77 → 12.0.78

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.
@@ -6909,13 +6909,21 @@
6909
6909
  if (this.startDate && this.endDate) {
6910
6910
  this.dateRangeChange.emit([this.startDate, this.endDate]);
6911
6911
  }
6912
+ this.model = [this.startDate, this.endDate];
6913
+ this.modelChange.emit(this.model);
6912
6914
  };
6913
6915
  return InputDateRangePickerComponent;
6914
6916
  }(BaseInputComponent));
6915
6917
  InputDateRangePickerComponent.decorators = [
6916
6918
  { type: i0.Component, args: [{
6917
6919
  selector: "co-input-date-range",
6918
- 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 ",
6920
+ template: "\n <ejs-daterangepicker #ejsDateRangePicker\n [format]=\"dateFormat\"\n floatLabelType=\"Auto\"\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 ",
6921
+ providers: [{
6922
+ provide: COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputDateRangePickerComponent; })
6923
+ }, {
6924
+ provide: BaseInputComponent,
6925
+ useExisting: InputDateRangePickerComponent
6926
+ }],
6919
6927
  encapsulation: i0.ViewEncapsulation.None
6920
6928
  },] }
6921
6929
  ];
@@ -7860,10 +7868,17 @@
7860
7868
  _super.prototype._markAsOnPush.call(_this);
7861
7869
  return _this;
7862
7870
  }
7871
+ Object.defineProperty(InputRadioButtonComponent.prototype, "isModelSelected", {
7872
+ get: function () {
7873
+ return this.model;
7874
+ },
7875
+ enumerable: false,
7876
+ configurable: true
7877
+ });
7863
7878
  InputRadioButtonComponent.prototype.showClass = function () {
7864
7879
  return true;
7865
7880
  };
7866
- InputRadioButtonComponent.prototype.handleModelChange = function (event) {
7881
+ InputRadioButtonComponent.prototype.handleClick = function (event) {
7867
7882
  event.preventDefault();
7868
7883
  event.stopPropagation();
7869
7884
  if (!this.readonly) {
@@ -7876,7 +7891,7 @@
7876
7891
  InputRadioButtonComponent.decorators = [
7877
7892
  { type: i0.Component, args: [{
7878
7893
  selector: "co-input-radio-button",
7879
- template: "\n <div class=\"outer-circle\" [class.selected]=\"model\" (click)=\"handleModelChange($event)\">\n <div class=\"inner-circle\" *ngIf=\"model\" @showSelected></div>\n </div>\n <div class=\"label\" *ngIf=\"label\" [textContent]=\"label\" (click)=\"handleModelChange($event)\"></div>\n <input #input [ngModel]=\"model\" type=\"hidden\">\n ",
7894
+ template: "\n <div class=\"outer-circle\" [class.selected]=\"model\">\n <div class=\"inner-circle\" *ngIf=\"model\" @showSelected></div>\n </div>\n <div class=\"label\" *ngIf=\"label\" [textContent]=\"label\"></div>\n <input #input [ngModel]=\"model\" type=\"hidden\">\n ",
7880
7895
  providers: [{
7881
7896
  provide: COMPONENT_INTERFACE_NAME, useExisting: i0.forwardRef(function () { return InputRadioButtonComponent; })
7882
7897
  }, {
@@ -7890,7 +7905,6 @@
7890
7905
  animations.transition("void <=> *", animations.animate("200ms ease-in-out")),
7891
7906
  ])
7892
7907
  ],
7893
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
7894
7908
  encapsulation: i0.ViewEncapsulation.None
7895
7909
  },] }
7896
7910
  ];
@@ -7903,7 +7917,9 @@
7903
7917
  { type: i0.ElementRef }
7904
7918
  ]; };
7905
7919
  InputRadioButtonComponent.propDecorators = {
7906
- showClass: [{ type: i0.HostBinding, args: ["class.co-radio-button",] }]
7920
+ isModelSelected: [{ type: i0.HostBinding, args: ["class.selected",] }],
7921
+ showClass: [{ type: i0.HostBinding, args: ["class.co-radio-button",] }],
7922
+ handleClick: [{ type: i0.HostListener, args: ["click", ["$event"],] }]
7907
7923
  };
7908
7924
 
7909
7925
  var InputRadioButtonModule = /** @class */ (function () {
@@ -10972,6 +10988,40 @@
10972
10988
  },] }
10973
10989
  ];
10974
10990
 
10991
+ var FilterPipe = /** @class */ (function () {
10992
+ function FilterPipe() {
10993
+ }
10994
+ FilterPipe.prototype.transform = function (items, field, value) {
10995
+ if (!items || !field) {
10996
+ return items;
10997
+ }
10998
+ return items.filter(function (item) { return item[field] === value; });
10999
+ };
11000
+ return FilterPipe;
11001
+ }());
11002
+ FilterPipe.decorators = [
11003
+ { type: i0.Pipe, args: [{
11004
+ name: "filter",
11005
+ pure: false
11006
+ },] }
11007
+ ];
11008
+
11009
+ var FilterPipeModule = /** @class */ (function () {
11010
+ function FilterPipeModule() {
11011
+ }
11012
+ return FilterPipeModule;
11013
+ }());
11014
+ FilterPipeModule.decorators = [
11015
+ { type: i0.NgModule, args: [{
11016
+ declarations: [
11017
+ FilterPipe
11018
+ ],
11019
+ exports: [
11020
+ FilterPipe
11021
+ ]
11022
+ },] }
11023
+ ];
11024
+
10975
11025
  var FilterItemComponent = /** @class */ (function () {
10976
11026
  function FilterItemComponent(iconService) {
10977
11027
  this.iconService = iconService;
@@ -11603,6 +11653,8 @@
11603
11653
  exports.DropDownModule = DropDownModule;
11604
11654
  exports.FilterItemComponent = FilterItemComponent;
11605
11655
  exports.FilterItemModule = FilterItemModule;
11656
+ exports.FilterPipe = FilterPipe;
11657
+ exports.FilterPipeModule = FilterPipeModule;
11606
11658
  exports.FormComponent = FormComponent;
11607
11659
  exports.FormMasterService = FormMasterService;
11608
11660
  exports.FormModule = FormModule;