igniteui-angular 21.1.0 → 21.1.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.
Files changed (30) hide show
  1. package/fesm2022/igniteui-angular-directives.mjs +28 -28
  2. package/fesm2022/igniteui-angular-directives.mjs.map +1 -1
  3. package/fesm2022/igniteui-angular-grids-core.mjs +3 -0
  4. package/fesm2022/igniteui-angular-grids-core.mjs.map +1 -1
  5. package/fesm2022/igniteui-angular-grids-grid.mjs +8 -7
  6. package/fesm2022/igniteui-angular-grids-grid.mjs.map +1 -1
  7. package/fesm2022/igniteui-angular-grids-pivot-grid.mjs +2 -2
  8. package/fesm2022/igniteui-angular-grids-pivot-grid.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/skills/igniteui-angular-components/SKILL.md +6 -9
  11. package/skills/igniteui-angular-components/references/charts.md +20 -10
  12. package/skills/igniteui-angular-components/references/data-display.md +13 -0
  13. package/skills/igniteui-angular-components/references/directives.md +123 -0
  14. package/skills/igniteui-angular-components/references/feedback.md +8 -0
  15. package/skills/igniteui-angular-components/references/form-controls.md +15 -0
  16. package/skills/igniteui-angular-components/references/layout-manager.md +5 -0
  17. package/skills/igniteui-angular-components/references/layout.md +9 -0
  18. package/skills/igniteui-angular-components/references/setup.md +10 -1
  19. package/skills/igniteui-angular-grids/SKILL.md +6 -6
  20. package/skills/igniteui-angular-grids/references/data-operations.md +13 -4
  21. package/skills/igniteui-angular-grids/references/editing.md +12 -1
  22. package/skills/igniteui-angular-grids/references/features.md +26 -10
  23. package/skills/igniteui-angular-grids/references/paging-remote.md +13 -4
  24. package/skills/igniteui-angular-grids/references/state.md +17 -151
  25. package/skills/igniteui-angular-grids/references/structure.md +9 -0
  26. package/skills/igniteui-angular-grids/references/types.md +104 -25
  27. package/skills/igniteui-angular-theming/SKILL.md +6 -106
  28. package/skills/igniteui-angular-theming/references/common-patterns.md +45 -0
  29. package/skills/igniteui-angular-theming/references/mcp-setup.md +77 -0
  30. package/types/igniteui-angular-grids-grid.d.ts +1 -0
@@ -3967,7 +3967,7 @@ class IgxForOfDirective extends IgxForOfToken {
3967
3967
  this.onScroll(event);
3968
3968
  }
3969
3969
  isScrollable() {
3970
- return this.scrollComponent.size > parseInt(this.igxForContainerSize, 10);
3970
+ return this.scrollComponent.size > parseFloat(this.igxForContainerSize);
3971
3971
  }
3972
3972
  get embeddedViewNodes() {
3973
3973
  const result = new Array(this._embeddedViews.length);
@@ -4118,8 +4118,8 @@ class IgxForOfDirective extends IgxForOfToken {
4118
4118
  }
4119
4119
  const containerSize = 'igxForContainerSize';
4120
4120
  if (containerSize in changes && !changes[containerSize].firstChange && this.igxForOf) {
4121
- const prevSize = parseInt(changes[containerSize].previousValue, 10);
4122
- const newSize = parseInt(changes[containerSize].currentValue, 10);
4121
+ const prevSize = parseFloat(changes[containerSize].previousValue);
4122
+ const newSize = parseFloat(changes[containerSize].currentValue);
4123
4123
  this._recalcOnContainerChange({ prevSize, newSize });
4124
4124
  }
4125
4125
  }
@@ -4172,7 +4172,7 @@ class IgxForOfDirective extends IgxForOfToken {
4172
4172
  return false;
4173
4173
  }
4174
4174
  const originalVirtScrollTop = this._virtScrollPosition;
4175
- const containerSize = parseInt(this.igxForContainerSize, 10);
4175
+ const containerSize = parseFloat(this.igxForContainerSize);
4176
4176
  const maxVirtScrollTop = this._virtSize - containerSize;
4177
4177
  this._bScrollInternal = true;
4178
4178
  this._virtScrollPosition += add;
@@ -4221,7 +4221,7 @@ class IgxForOfDirective extends IgxForOfToken {
4221
4221
  if (index < 0 || index > (this.isRemote ? this.totalItemCount : this.igxForOf.length) - 1) {
4222
4222
  return;
4223
4223
  }
4224
- const containerSize = parseInt(this.igxForContainerSize, 10);
4224
+ const containerSize = parseFloat(this.igxForContainerSize);
4225
4225
  const isPrevItem = index < this.state.startIndex || this.scrollPosition > this.sizesCache[index];
4226
4226
  let nextScroll = isPrevItem ? this.sizesCache[index] : this.sizesCache[index + 1] - containerSize;
4227
4227
  if (nextScroll < 0) {
@@ -4245,7 +4245,7 @@ class IgxForOfDirective extends IgxForOfToken {
4245
4245
  */
4246
4246
  scrollNext() {
4247
4247
  const scr = Math.abs(Math.ceil(this.scrollPosition));
4248
- const endIndex = this.getIndexAt(scr + parseInt(this.igxForContainerSize, 10), this.sizesCache);
4248
+ const endIndex = this.getIndexAt(scr + parseFloat(this.igxForContainerSize), this.sizesCache);
4249
4249
  this.scrollTo(endIndex);
4250
4250
  }
4251
4251
  /**
@@ -4266,7 +4266,7 @@ class IgxForOfDirective extends IgxForOfToken {
4266
4266
  * ```
4267
4267
  */
4268
4268
  scrollNextPage() {
4269
- this.addScroll(parseInt(this.igxForContainerSize, 10));
4269
+ this.addScroll(parseFloat(this.igxForContainerSize));
4270
4270
  }
4271
4271
  /**
4272
4272
  * Scrolls by one page into the appropriate previous direction.
@@ -4276,7 +4276,7 @@ class IgxForOfDirective extends IgxForOfToken {
4276
4276
  * ```
4277
4277
  */
4278
4278
  scrollPrevPage() {
4279
- const containerSize = (parseInt(this.igxForContainerSize, 10));
4279
+ const containerSize = (parseFloat(this.igxForContainerSize));
4280
4280
  this.addScroll(-containerSize);
4281
4281
  }
4282
4282
  /**
@@ -4297,7 +4297,7 @@ class IgxForOfDirective extends IgxForOfToken {
4297
4297
  // fisrt item is not fully in view
4298
4298
  startIndex++;
4299
4299
  }
4300
- const endIndex = this.getIndexAt(this.scrollPosition + parseInt(this.igxForContainerSize, 10), this.sizesCache);
4300
+ const endIndex = this.getIndexAt(this.scrollPosition + parseFloat(this.igxForContainerSize), this.sizesCache);
4301
4301
  return endIndex - startIndex;
4302
4302
  }
4303
4303
  /**
@@ -4333,7 +4333,7 @@ class IgxForOfDirective extends IgxForOfToken {
4333
4333
  * ```
4334
4334
  */
4335
4335
  getScrollForIndex(index, bottom) {
4336
- const containerSize = parseInt(this.igxForContainerSize, 10);
4336
+ const containerSize = parseFloat(this.igxForContainerSize);
4337
4337
  const scroll = bottom ? Math.max(0, this.sizesCache[index + 1] - containerSize) : this.sizesCache[index];
4338
4338
  return scroll;
4339
4339
  }
@@ -4356,7 +4356,7 @@ class IgxForOfDirective extends IgxForOfToken {
4356
4356
  const targetNode = index >= this.state.startIndex && index <= this.state.startIndex + this.state.chunkSize ?
4357
4357
  this.embeddedViewNodes[index - this.state.startIndex] : null;
4358
4358
  const rowHeight = this.getSizeAt(index);
4359
- const containerSize = parseInt(this.igxForContainerSize, 10);
4359
+ const containerSize = parseFloat(this.igxForContainerSize);
4360
4360
  const containerOffset = -(this.scrollPosition - this.sizesCache[this.state.startIndex]);
4361
4361
  const endTopOffset = targetNode ? targetNode.offsetTop + rowHeight + containerOffset : containerSize + rowHeight;
4362
4362
  return !targetNode || targetNode.offsetTop < Math.abs(containerOffset)
@@ -4409,7 +4409,7 @@ class IgxForOfDirective extends IgxForOfToken {
4409
4409
  }
4410
4410
  const scrToBottom = this._isScrolledToBottom && !this.dc.instance.notVirtual;
4411
4411
  if (scrToBottom && !this._isAtBottomIndex) {
4412
- const containerSize = parseInt(this.igxForContainerSize, 10);
4412
+ const containerSize = parseFloat(this.igxForContainerSize);
4413
4413
  const maxVirtScrollTop = this._virtSize - containerSize;
4414
4414
  this._bScrollInternal = true;
4415
4415
  this._virtScrollPosition = maxVirtScrollTop;
@@ -4454,7 +4454,7 @@ class IgxForOfDirective extends IgxForOfToken {
4454
4454
  */
4455
4455
  onScroll(event) {
4456
4456
  /* in certain situations this may be called when no scrollbar is visible */
4457
- if (!parseInt(this.scrollComponent.nativeElement.style.height, 10)) {
4457
+ if (!parseFloat(this.scrollComponent.nativeElement.style.height)) {
4458
4458
  return;
4459
4459
  }
4460
4460
  this.scrollComponent.scrollAmount = event.target.scrollTop;
@@ -4642,7 +4642,7 @@ class IgxForOfDirective extends IgxForOfToken {
4642
4642
  onHScroll(event) {
4643
4643
  /* in certain situations this may be called when no scrollbar is visible */
4644
4644
  const firstScrollChild = this.scrollComponent.nativeElement.children.item(0);
4645
- if (!parseInt(firstScrollChild.style.width, 10)) {
4645
+ if (!parseFloat(firstScrollChild.style.width)) {
4646
4646
  return;
4647
4647
  }
4648
4648
  this.scrollComponent.scrollAmount = event.target.scrollLeft;
@@ -4806,7 +4806,7 @@ class IgxForOfDirective extends IgxForOfToken {
4806
4806
  let maxLength = 0;
4807
4807
  const arr = [];
4808
4808
  let sum = 0;
4809
- const availableSize = parseInt(this.igxForContainerSize, 10);
4809
+ const availableSize = parseFloat(this.igxForContainerSize);
4810
4810
  if (!availableSize) {
4811
4811
  return 0;
4812
4812
  }
@@ -4836,7 +4836,7 @@ class IgxForOfDirective extends IgxForOfToken {
4836
4836
  const prevItem = this.igxForOf[prevIndex];
4837
4837
  const prevSize = dimension === 'height' ?
4838
4838
  this.individualSizeCache[prevIndex] :
4839
- parseInt(prevItem[dimension], 10);
4839
+ parseFloat(prevItem[dimension]);
4840
4840
  sum = arr.reduce(reducer, prevSize);
4841
4841
  arr.unshift(prevItem);
4842
4842
  length = arr.length;
@@ -4884,8 +4884,8 @@ class IgxForOfDirective extends IgxForOfToken {
4884
4884
  this.dc.instance.notVirtual = !(this.igxForContainerSize && this.dc && this.state.chunkSize < count);
4885
4885
  const scrollable = containerSizeInfo ? this.scrollComponent.size > containerSizeInfo.prevSize : this.isScrollable();
4886
4886
  if (this.igxForScrollOrientation === 'horizontal') {
4887
- const totalWidth = parseInt(this.igxForContainerSize, 10) > 0 ? this._calcSize() : 0;
4888
- if (totalWidth <= parseInt(this.igxForContainerSize, 10)) {
4887
+ const totalWidth = parseFloat(this.igxForContainerSize) > 0 ? this._calcSize() : 0;
4888
+ if (totalWidth <= parseFloat(this.igxForContainerSize)) {
4889
4889
  this.resetScrollPosition();
4890
4890
  }
4891
4891
  this.scrollComponent.nativeElement.style.width = this.igxForContainerSize + 'px';
@@ -4893,10 +4893,10 @@ class IgxForOfDirective extends IgxForOfToken {
4893
4893
  }
4894
4894
  if (this.igxForScrollOrientation === 'vertical') {
4895
4895
  const totalHeight = this._calcSize();
4896
- if (totalHeight <= parseInt(this.igxForContainerSize, 10)) {
4896
+ if (totalHeight <= parseFloat(this.igxForContainerSize)) {
4897
4897
  this.resetScrollPosition();
4898
4898
  }
4899
- this.scrollComponent.nativeElement.style.height = parseInt(this.igxForContainerSize, 10) + 'px';
4899
+ this.scrollComponent.nativeElement.style.height = parseFloat(this.igxForContainerSize) + 'px';
4900
4900
  this.scrollComponent.size = totalHeight;
4901
4901
  }
4902
4902
  if (scrollable !== this.isScrollable()) {
@@ -4982,7 +4982,7 @@ class IgxForOfDirective extends IgxForOfToken {
4982
4982
  }
4983
4983
  }
4984
4984
  _calcVirtualScrollPosition(scrollPosition) {
4985
- const containerSize = parseInt(this.igxForContainerSize, 10);
4985
+ const containerSize = parseFloat(this.igxForContainerSize);
4986
4986
  const maxRealScrollPosition = this.scrollComponent.size - containerSize;
4987
4987
  const realPercentScrolled = maxRealScrollPosition !== 0 ? scrollPosition / maxRealScrollPosition : 0;
4988
4988
  const maxVirtScroll = this._virtSize - containerSize;
@@ -4990,7 +4990,7 @@ class IgxForOfDirective extends IgxForOfToken {
4990
4990
  }
4991
4991
  _getItemSize(item, dimension) {
4992
4992
  const dim = item ? item[dimension] : null;
4993
- return typeof dim === 'number' ? dim : parseInt(this.igxForItemSize, 10) || 0;
4993
+ return typeof dim === 'number' ? dim : parseFloat(this.igxForItemSize) || 0;
4994
4994
  }
4995
4995
  _updateScrollOffset() {
4996
4996
  let scrollOffset = 0;
@@ -5012,7 +5012,7 @@ class IgxForOfDirective extends IgxForOfToken {
5012
5012
  // should update scroll top/left according to change so that same startIndex is in view
5013
5013
  if (Math.abs(sizeDiff) > 0 && this.scrollPosition > 0) {
5014
5014
  const offset = this.igxForScrollOrientation === 'horizontal' ?
5015
- parseInt(this.dc.instance._viewContainer.element.nativeElement.style.left, 10) :
5015
+ parseFloat(this.dc.instance._viewContainer.element.nativeElement.style.left) :
5016
5016
  Number(this.dc.instance._viewContainer.element.nativeElement.style.transform?.match(/translateY\((-?\d+\.?\d*)px\)/)?.[1]);
5017
5017
  const newSize = this.sizesCache[this.state.startIndex] - offset;
5018
5018
  this.scrollPosition = newSize;
@@ -5179,8 +5179,8 @@ class IgxGridForOfDirective extends IgxForOfDirective {
5179
5179
  }
5180
5180
  const containerSize = 'igxForContainerSize';
5181
5181
  if (containerSize in changes && !changes[containerSize].firstChange && this.igxForOf) {
5182
- const prevSize = parseInt(changes[containerSize].previousValue, 10);
5183
- const newSize = parseInt(changes[containerSize].currentValue, 10);
5182
+ const prevSize = parseFloat(changes[containerSize].previousValue);
5183
+ const newSize = parseFloat(changes[containerSize].currentValue);
5184
5184
  this._recalcOnContainerChange({ prevSize, newSize });
5185
5185
  }
5186
5186
  }
@@ -5250,7 +5250,7 @@ class IgxGridForOfDirective extends IgxForOfDirective {
5250
5250
  onHScroll(scrollAmount) {
5251
5251
  /* in certain situations this may be called when no scrollbar is visible */
5252
5252
  const firstScrollChild = this.scrollComponent.nativeElement.children.item(0);
5253
- if (!this.scrollComponent || !parseInt(firstScrollChild.style.width, 10)) {
5253
+ if (!this.scrollComponent || !parseFloat(firstScrollChild.style.width)) {
5254
5254
  return;
5255
5255
  }
5256
5256
  this.scrollComponent.scrollAmount = scrollAmount;
@@ -5278,7 +5278,7 @@ class IgxGridForOfDirective extends IgxForOfDirective {
5278
5278
  }
5279
5279
  }
5280
5280
  else {
5281
- size = parseInt(item[dimension], 10) || 0;
5281
+ size = parseFloat(item[dimension]) || 0;
5282
5282
  }
5283
5283
  return size;
5284
5284
  }
@@ -5305,7 +5305,7 @@ class IgxGridForOfDirective extends IgxForOfDirective {
5305
5305
  getNodeSize(rNode, index) {
5306
5306
  if (this.igxForScrollOrientation === 'vertical') {
5307
5307
  const view = this._embeddedViews[index];
5308
- return this._embeddedViewSizesCache.get(view) || parseInt(this.igxForItemSize, 10);
5308
+ return this._embeddedViewSizesCache.get(view) || parseFloat(this.igxForItemSize);
5309
5309
  }
5310
5310
  else {
5311
5311
  return super.getNodeSize(rNode, index);