igniteui-angular 12.1.7 → 12.1.8

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.
@@ -1729,6 +1729,7 @@
1729
1729
  };
1730
1730
  chunk();
1731
1731
  };
1732
+ var isConstructor = function (ref) { return typeof ref === 'function' && Boolean(ref.prototype) && Boolean(ref.prototype.constructor); };
1732
1733
  var reverseAnimationResolver = function (animation) { var _a; return (_a = oppositeAnimation.get(animation)) !== null && _a !== void 0 ? _a : animation; };
1733
1734
  var isHorizontalAnimation = function (animation) { return horizontalAnimations.includes(animation); };
1734
1735
  var isVerticalAnimation = function (animation) { return verticalAnimations.includes(animation); };
@@ -10635,7 +10636,9 @@
10635
10636
  * @memberof IgxColumnComponent
10636
10637
  */
10637
10638
  set: function (classRef) {
10638
- this._summaries = new classRef();
10639
+ if (isConstructor(classRef)) {
10640
+ this._summaries = new classRef();
10641
+ }
10639
10642
  if (this.grid) {
10640
10643
  this.grid.summaryService.removeSummariesCachePerColumn(this.field);
10641
10644
  this.grid.summaryPipeTrigger++;
@@ -21685,6 +21688,15 @@
21685
21688
 
21686
21689
  /**
21687
21690
  * @hidden
21691
+ * IF YOU EDIT THIS OBJECT, DO NOT FORGET TO UPDATE
21692
+ * projects/igniteui-angular-i18n as well (create the appropriately named files,
21693
+ * containing the new/updated component string keys and EN strings for values + create a separate issue + pending-localization label)
21694
+ *
21695
+ * TODO Add automation tests:
21696
+ * 1) each of the folders/languages under \projects\igniteui-angular-i18n\src\ contain resources.ts file with matching components count.
21697
+ * \projects\igniteui-angular-i18n\src\BG\resources.ts contains IgxResourceStringsBG.count matching this.CurrentResourceStrings.count
21698
+ * 2) \igniteui-angular\projects\igniteui-angular\src\public_api.ts --> Check if the new interface is added
21699
+ * to IInputResourceStrings (just a proxy as it is later on imported in the angular-i18n package)
21688
21700
  */
21689
21701
  var CurrentResourceStrings = {
21690
21702
  GridResStrings: cloneValue(GridResourceStringsEN),
@@ -41304,7 +41316,7 @@
41304
41316
  */
41305
41317
  var IgxDatePickerComponent = /** @class */ (function (_super) {
41306
41318
  __extends(IgxDatePickerComponent, _super);
41307
- function IgxDatePickerComponent(element, _localeId, _overlayService, _moduleRef, _injector, _renderer, platform, _displayDensityOptions, _inputGroupType) {
41319
+ function IgxDatePickerComponent(element, _localeId, _overlayService, _moduleRef, _injector, _renderer, platform, cdr, _displayDensityOptions, _inputGroupType) {
41308
41320
  var _this = _super.call(this, element, _localeId, _displayDensityOptions, _inputGroupType) || this;
41309
41321
  _this.element = element;
41310
41322
  _this._localeId = _localeId;
@@ -41313,6 +41325,7 @@
41313
41325
  _this._injector = _injector;
41314
41326
  _this._renderer = _renderer;
41315
41327
  _this.platform = platform;
41328
+ _this.cdr = cdr;
41316
41329
  _this._displayDensityOptions = _displayDensityOptions;
41317
41330
  _this._inputGroupType = _inputGroupType;
41318
41331
  /**
@@ -41823,6 +41836,10 @@
41823
41836
  if (this._ngControl) {
41824
41837
  this._statusChanges$ =
41825
41838
  this._ngControl.statusChanges.subscribe(this.onStatusChanged.bind(this));
41839
+ if (this._ngControl.control.validator) {
41840
+ this.inputGroup.isRequired = this.required;
41841
+ this.cdr.detectChanges();
41842
+ }
41826
41843
  }
41827
41844
  };
41828
41845
  /** @hidden @internal */
@@ -42041,6 +42058,7 @@
42041
42058
  { type: i0.Injector },
42042
42059
  { type: i0.Renderer2 },
42043
42060
  { type: PlatformUtil },
42061
+ { type: i0.ChangeDetectorRef },
42044
42062
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [DisplayDensityToken,] }] },
42045
42063
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [IGX_INPUT_GROUP_TYPE,] }] }
42046
42064
  ]; };
@@ -80502,8 +80520,6 @@
80502
80520
  /** @hidden */
80503
80521
  function IgxTabsDirective(builder) {
80504
80522
  var _this = _super.call(this, builder) || this;
80505
- /** @hidden */
80506
- _this.role = 'tabs';
80507
80523
  /**
80508
80524
  * Output to enable support for two-way binding on [(selectedIndex)]
80509
80525
  */
@@ -80753,7 +80769,6 @@
80753
80769
  { type: i1.AnimationBuilder }
80754
80770
  ]; };
80755
80771
  IgxTabsDirective.propDecorators = {
80756
- role: [{ type: i0.HostBinding, args: ['attr.role',] }],
80757
80772
  selectedIndex: [{ type: i0.Input }],
80758
80773
  disableAnimation: [{ type: i0.Input }],
80759
80774
  selectedIndexChange: [{ type: i0.Output }],