@clr/angular 13.14.0 → 13.14.1

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.
@@ -13838,7 +13838,6 @@ class Items {
13838
13838
  * Indicates if the data is currently loading
13839
13839
  */
13840
13840
  this.loading = false;
13841
- // TODO: Verify that trackBy is registered for the *ngFor case too
13842
13841
  /**
13843
13842
  * Tracking function to identify objects. Default is reference equality.
13844
13843
  */
@@ -14018,6 +14017,16 @@ class ClrDatagridItems {
14018
14017
  this.items.trackBy = value;
14019
14018
  this.iterableProxy.ngForTrackBy = value;
14020
14019
  }
14020
+ /**
14021
+ * Asserts the correct type of the template context that the directive will render.
14022
+ * See https://angular.io/guide/structural-directives#typing-the-directives-context
14023
+ *
14024
+ * The presence of this method is a signal to the Ivy template type-check compiler that the
14025
+ * structural directive renders its template with a specific context type.
14026
+ */
14027
+ static ngTemplateContextGuard(_dir, _ctx) {
14028
+ return true;
14029
+ }
14021
14030
  ngDoCheck() {
14022
14031
  if (!this.differ) {
14023
14032
  this.differ = this.differs.find(this._rawItems).create(this.iterableProxy.ngForTrackBy);
@@ -14781,7 +14790,7 @@ class Selection {
14781
14790
  *
14782
14791
  */
14783
14792
  canItBeLocked() {
14784
- // We depend on the trackBy and all so there are part of the requirment of is item could be locked
14793
+ // We depend on the trackBy and all so there are part of the requirement of is item could be locked
14785
14794
  return this._selectionType !== SelectionType.None && Array.isArray(this._items.all);
14786
14795
  }
14787
14796
  /**
@@ -14801,11 +14810,11 @@ class Selection {
14801
14810
  }
14802
14811
  }
14803
14812
  /**
14804
- * Check is item locked or not by searcing into lockedRefs for entry
14813
+ * Check is item locked or not by searching into lockedRefs for entry
14805
14814
  */
14806
14815
  isLocked(item) {
14807
14816
  /**
14808
- * The check for selectionType will boost the performence by NOT searching
14817
+ * The check for selectionType will boost the performance by NOT searching
14809
14818
  * into the array when there is no need for that.
14810
14819
  */
14811
14820
  if (this.canItBeLocked()) {
@@ -16112,6 +16121,9 @@ class ClrDatagridColumnToggle {
16112
16121
  anchor: ClrAlignment.START,
16113
16122
  content: ClrAlignment.START,
16114
16123
  };
16124
+ // Without tracking the checkboxes get rerendered on model update, which leads
16125
+ // to loss of focus after checkbox toggle.
16126
+ this.trackByFn = index => index;
16115
16127
  this.subscription = popoverToggleService.openChange.subscribe(change => (this.openState = change));
16116
16128
  }
16117
16129
  get allColumnsVisible() {
@@ -16145,11 +16157,6 @@ class ClrDatagridColumnToggle {
16145
16157
  allColumnsSelected() {
16146
16158
  this.allSelectedElement.nativeElement.focus();
16147
16159
  }
16148
- // Without tracking the checkboxes get rerendered on model update, which leads
16149
- // to loss of focus after checkbox toggle.
16150
- trackByFn(index) {
16151
- return index;
16152
- }
16153
16160
  }
16154
16161
  ClrDatagridColumnToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ClrDatagridColumnToggle, deps: [{ token: ClrCommonStringsService }, { token: ColumnsService }, { token: ClrPopoverToggleService }], target: i0.ɵɵFactoryTarget.Component });
16155
16162
  ClrDatagridColumnToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ClrDatagridColumnToggle, selector: "clr-dg-column-toggle", host: { properties: { "class.column-switch-wrapper": "true", "class.active": "openState" } }, providers: [ClrPopoverEventsService, ClrPopoverPositionService, ClrPopoverToggleService], queries: [{ propertyName: "customToggleTitle", first: true, predicate: ClrDatagridColumnToggleTitle, descendants: true }, { propertyName: "customToggleButton", first: true, predicate: ClrDatagridColumnToggleButton, descendants: true }], viewQueries: [{ propertyName: "allSelectedElement", first: true, predicate: ["allSelected"], descendants: true, read: ElementRef }], ngImport: i0, template: `