igniteui-angular 21.1.3 → 21.1.5
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.
- package/fesm2022/igniteui-angular-combo.mjs +1 -0
- package/fesm2022/igniteui-angular-combo.mjs.map +1 -1
- package/fesm2022/igniteui-angular-core.mjs +1 -1
- package/fesm2022/igniteui-angular-core.mjs.map +1 -1
- package/fesm2022/igniteui-angular-directives.mjs +41 -12
- package/fesm2022/igniteui-angular-directives.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-core.mjs +30 -4
- package/fesm2022/igniteui-angular-grids-core.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-grid.mjs +38 -16
- package/fesm2022/igniteui-angular-grids-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-hierarchical-grid.mjs +3 -0
- package/fesm2022/igniteui-angular-grids-hierarchical-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-pivot-grid.mjs +5 -2
- package/fesm2022/igniteui-angular-grids-pivot-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-simple-combo.mjs +1 -0
- package/fesm2022/igniteui-angular-simple-combo.mjs.map +1 -1
- package/package.json +1 -1
- package/skills/igniteui-angular-components/references/directives.md +5 -5
- package/skills/igniteui-angular-components/references/feedback.md +2 -2
- package/skills/igniteui-angular-components/references/form-controls.md +50 -2
- package/skills/igniteui-angular-components/references/setup.md +1 -2
- package/types/igniteui-angular-core.d.ts +1 -0
- package/types/igniteui-angular-directives.d.ts +13 -3
- package/types/igniteui-angular-grids-core.d.ts +1 -0
- package/types/igniteui-angular-grids-grid.d.ts +1 -0
- package/types/igniteui-angular-grids-hierarchical-grid.d.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, inject, ElementRef, ChangeDetectorRef, TemplateRef, HostBinding, HostListener, ViewChild, Input, ChangeDetectionStrategy, Component, Pipe, DOCUMENT, forwardRef, InjectionToken, QueryList, NgZone, IterableDiffers, ViewContainerRef, Injector, EnvironmentInjector, LOCALE_ID, EventEmitter, createComponent, booleanAttribute, ViewChildren, ContentChildren, ContentChild, Output, Directive, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
3
3
|
import { NgTemplateOutlet, NgClass, NgStyle } from '@angular/common';
|
|
4
|
-
import { GridBaseAPIService, IGX_GRID_BASE, IgxGridSelectionService, IgxFilteringService, GridSelectionMode, IgxColumnFormatterPipe, IgxGroupByAreaDirective, IgxGroupAreaDropDirective, IgxGroupByMetaPipe, GridSummaryPosition, RowPinningPosition, IgxGridCellComponent, IgxGridCellImageAltPipe, IgxStringReplacePipe, IgxRowDirective, IgxRowDragDirective, IgxGridNotGroupedPipe, IgxGridTopLevelColumns, IgxGridCellStylesPipe, IgxGridCellStyleClassesPipe, IgxGridDataMapperPipe, IgxGridTransactionStatePipe, FilterMode, GridCellMergeMode, IgxGridValidationService, IgxColumnResizingService, IGX_GRID_SERVICE_BASE, IgxGridNavigationService, IgxGridSummaryService, IgxGridTransaction, RowEditPositionStrategy, getUUID, IgxGridExcelStyleFilteringComponent, DropPosition, IgxCell, IgxEditRow, IgxColumnComponent, CharSeparatedValueData, IgxAdvancedFilteringDialogComponent, IgxColumnGroupComponent, IgxGridColumnResizerComponent, IgxGridHeaderRowComponent, IgxGridBodyDirective, IgxRowEditTabStopDirective, IgxSummaryRowComponent, IgxExcelStyleLoadingValuesTemplateDirective, IgxRowAddTextDirective, IgxRowExpandedIndicatorDirective, IgxRowCollapsedIndicatorDirective, IgxHeaderExpandedIndicatorDirective, IgxHeaderCollapsedIndicatorDirective, IgxExcelStyleHeaderIconDirective, IgxSortAscendingHeaderIconDirective, IgxSortDescendingHeaderIconDirective, IgxSortHeaderIconDirective, IgxGridLoadingTemplateDirective, IgxGridEmptyTemplateDirective, IgxHeadSelectorDirective, IgxRowSelectorDirective, IgxRowDragGhostDirective, IgxRowEditTemplateDirective, IgxRowEditTextDirective, IgxRowEditActionsDirective, IgxDragIndicatorIconDirective, IgxToolbarToken, WatchChanges, IgxGridRow, IgxGridCell, IgxGroupByRow, IgxSummaryRow, IgxGridMRLNavigationService, IgxGridDragSelectDirective, IgxColumnMovingDropDirective, IgxGridTransactionPipe, IgxHasVisibleColumnsPipe, IgxGridRowPinningPipe, IgxGridAddRowPipe, IgxGridRowClassesPipe, IgxGridRowStylesPipe, IgxSummaryDataPipe, IgxGridDetailTemplateDirective, IgxGroupByRowTemplateDirective, IgxGroupByRowSelectorDirective, IgxGridCRUDService, IgxGridFooterComponent, IgxGridStateDirective,
|
|
4
|
+
import { GridBaseAPIService, IGX_GRID_BASE, IgxGridSelectionService, IgxFilteringService, GridSelectionMode, IgxColumnFormatterPipe, IgxGroupByAreaDirective, IgxGroupAreaDropDirective, IgxGroupByMetaPipe, GridSummaryPosition, RowPinningPosition, IgxGridCellComponent, IgxGridCellImageAltPipe, IgxStringReplacePipe, IgxRowDirective, IgxRowDragDirective, IgxGridNotGroupedPipe, IgxGridTopLevelColumns, IgxGridCellStylesPipe, IgxGridCellStyleClassesPipe, IgxGridDataMapperPipe, IgxGridTransactionStatePipe, FilterMode, GridCellMergeMode, IgxGridValidationService, IgxColumnResizingService, IGX_GRID_SERVICE_BASE, IgxGridNavigationService, IgxGridSummaryService, IgxGridTransaction, RowEditPositionStrategy, getUUID, IgxGridExcelStyleFilteringComponent, DropPosition, IgxCell, IgxEditRow, IgxColumnComponent, CharSeparatedValueData, IgxAdvancedFilteringDialogComponent, IgxColumnGroupComponent, IgxGridPinningActionsComponent, IgxGridColumnResizerComponent, IgxGridHeaderRowComponent, IgxGridBodyDirective, IgxRowEditTabStopDirective, IgxSummaryRowComponent, IgxExcelStyleLoadingValuesTemplateDirective, IgxRowAddTextDirective, IgxRowExpandedIndicatorDirective, IgxRowCollapsedIndicatorDirective, IgxHeaderExpandedIndicatorDirective, IgxHeaderCollapsedIndicatorDirective, IgxExcelStyleHeaderIconDirective, IgxSortAscendingHeaderIconDirective, IgxSortDescendingHeaderIconDirective, IgxSortHeaderIconDirective, IgxGridLoadingTemplateDirective, IgxGridEmptyTemplateDirective, IgxHeadSelectorDirective, IgxRowSelectorDirective, IgxRowDragGhostDirective, IgxRowEditTemplateDirective, IgxRowEditTextDirective, IgxRowEditActionsDirective, IgxDragIndicatorIconDirective, IgxToolbarToken, WatchChanges, IgxGridRow, IgxGridCell, IgxGroupByRow, IgxSummaryRow, IgxGridMRLNavigationService, IgxGridDragSelectDirective, IgxColumnMovingDropDirective, IgxGridTransactionPipe, IgxHasVisibleColumnsPipe, IgxGridRowPinningPipe, IgxGridAddRowPipe, IgxGridRowClassesPipe, IgxGridRowStylesPipe, IgxSummaryDataPipe, IgxGridDetailTemplateDirective, IgxGroupByRowTemplateDirective, IgxGroupByRowSelectorDirective, IgxGridCRUDService, IgxGridFooterComponent, IgxGridStateDirective, IgxGridEditingActionsComponent, IgxGridActionsBaseDirective, IgxGridActionButtonComponent, IgxGridHeaderComponent, IgxGridHeaderGroupComponent, IgxFilterCellTemplateDirective, IgxSummaryTemplateDirective, IgxCellTemplateDirective, IgxCellValidationErrorDirective, IgxCellHeaderTemplateDirective, IgxCellFooterTemplateDirective, IgxCellEditorTemplateDirective, IgxCollapsibleIndicatorTemplateDirective, IgxColumnLayoutComponent, IgxColumnActionsComponent, IgxColumnHidingDirective, IgxColumnPinningDirective, IgxCSVTextDirective, IgxExcelTextDirective, IgxGridToolbarActionsComponent, IgxGridToolbarAdvancedFilteringComponent, IgxGridToolbarComponent, IgxGridToolbarExporterComponent, IgxGridToolbarHidingComponent, IgxGridToolbarPinningComponent, IgxGridToolbarTitleComponent, IgxGridToolbarDirective, IgxExcelStyleHeaderComponent, IgxExcelStyleSortingComponent, IgxExcelStylePinningComponent, IgxExcelStyleHidingComponent, IgxExcelStyleSelectingComponent, IgxExcelStyleClearFiltersComponent, IgxExcelStyleConditionalFilterComponent, IgxExcelStyleMovingComponent, IgxExcelStyleSearchComponent, IgxExcelStyleColumnOperationsTemplateDirective, IgxExcelStyleFilterOperationsTemplateDirective, IgxColumnRequiredValidatorDirective, IgxColumnMinValidatorDirective, IgxColumnMaxValidatorDirective, IgxColumnEmailValidatorDirective, IgxColumnMinLengthValidatorDirective, IgxColumnMaxLengthValidatorDirective, IgxColumnPatternValidatorDirective } from 'igniteui-angular/grids/core';
|
|
5
5
|
import { cloneArray, DataUtil, GridColumnDataType, IgxNumberFormatterPipe, IgxDateFormatterPipe, IgxPercentFormatterPipe, IgxCurrencyFormatterPipe, GridSummaryCalculationMode, FilteringExpressionsTree, FilterUtil, HammerGesturesManager, isTree, FilteringLogic, FilteringExpressionsTreeType, getCurrentResourceStrings, GridResourceStringsEN, isObject, TransactionType, IgxFlatTransactionFactory, IgxOverlayService, PlatformUtil, I18N_FORMATTER, DefaultMergeStrategy, FilteringStrategy, ColumnPinningPosition, VerticalAlignment, HorizontalAlignment, ConnectedPositioningStrategy, AbsoluteScrollStrategy, DefaultDataCloneStrategy, ɵSize as _Size, areEqualArrays, resizeObservable, compareMaps, TransactionEventOrigin, mergeObjects, ContainerPositionStrategy, resolveNestedPath, columnFieldPath, recreateTree, recreateTreeFromFields, DEFAULT_LOCALE, onResourceChangeHandle, IgxOverlayOutletDirective, IgxActionStripToken } from 'igniteui-angular/core';
|
|
6
6
|
import { takeUntil, shareReplay, filter, throttle, take, switchMap, throttleTime, takeWhile, map, first } from 'rxjs/operators';
|
|
7
7
|
import { Subject, BehaviorSubject, animationFrameScheduler, fromEvent, timer, pipe, merge } from 'rxjs';
|
|
@@ -737,7 +737,7 @@ class IgxGridUnmergeActivePipe {
|
|
|
737
737
|
}
|
|
738
738
|
const result = cloneArray(collection);
|
|
739
739
|
uniqueRoots.forEach(x => {
|
|
740
|
-
const index =
|
|
740
|
+
const index = x.index;
|
|
741
741
|
const colKeys = [...x.cellMergeMeta.keys()];
|
|
742
742
|
const cols = colsToMerge.filter(col => colKeys.indexOf(col.field) !== -1);
|
|
743
743
|
for (const col of cols) {
|
|
@@ -2218,7 +2218,7 @@ class IgxGridBaseDirective {
|
|
|
2218
2218
|
this.subscribeToTransactions();
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
2221
|
-
/*
|
|
2221
|
+
/* csSuppress */
|
|
2222
2222
|
/**
|
|
2223
2223
|
* Get transactions service for the grid.
|
|
2224
2224
|
*/
|
|
@@ -3620,7 +3620,7 @@ class IgxGridBaseDirective {
|
|
|
3620
3620
|
}
|
|
3621
3621
|
getMergeCellOffset(rowData) {
|
|
3622
3622
|
const index = rowData.dataIndex;
|
|
3623
|
-
let offset = this.verticalScrollContainer.
|
|
3623
|
+
let offset = this.verticalScrollContainer._virtScrollPosition - this.verticalScrollContainer.getScrollForIndex(index);
|
|
3624
3624
|
if (this.hasPinnedRecords && this.isRowPinningToTop) {
|
|
3625
3625
|
offset -= this.pinnedRowHeight;
|
|
3626
3626
|
}
|
|
@@ -3961,6 +3961,11 @@ class IgxGridBaseDirective {
|
|
|
3961
3961
|
this.paginationComponents.changes.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
3962
3962
|
this.setUpPaginator();
|
|
3963
3963
|
});
|
|
3964
|
+
this.actionStripComponents.changes.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
3965
|
+
if (this.actionStrip) {
|
|
3966
|
+
this.actionStrip.menuOverlaySettings.outlet = this.outlet;
|
|
3967
|
+
}
|
|
3968
|
+
});
|
|
3964
3969
|
if (this.actionStrip) {
|
|
3965
3970
|
this.actionStrip.menuOverlaySettings.outlet = this.outlet;
|
|
3966
3971
|
}
|
|
@@ -7350,9 +7355,16 @@ class IgxGridBaseDirective {
|
|
|
7350
7355
|
});
|
|
7351
7356
|
this.disableTransitions = false;
|
|
7352
7357
|
this.hideOverlays();
|
|
7353
|
-
this.actionStrip?.
|
|
7354
|
-
|
|
7355
|
-
|
|
7358
|
+
const context = this.actionStrip?.context;
|
|
7359
|
+
const contextEl = context?.element?.nativeElement;
|
|
7360
|
+
const keepActionStrip = !!context?.pinned &&
|
|
7361
|
+
!!contextEl?.isConnected &&
|
|
7362
|
+
!this.hasMenuPinningActions();
|
|
7363
|
+
if (!keepActionStrip) {
|
|
7364
|
+
if (this.actionStrip) {
|
|
7365
|
+
this.actionStrip.hide();
|
|
7366
|
+
this.actionStrip.context = null;
|
|
7367
|
+
}
|
|
7356
7368
|
}
|
|
7357
7369
|
const args = {
|
|
7358
7370
|
direction: 'vertical',
|
|
@@ -7361,6 +7373,17 @@ class IgxGridBaseDirective {
|
|
|
7361
7373
|
};
|
|
7362
7374
|
this.gridScroll.emit(args);
|
|
7363
7375
|
}
|
|
7376
|
+
hasMenuPinningActions() {
|
|
7377
|
+
const strip = this.actionStrip;
|
|
7378
|
+
const actionButtons = strip?.actionButtons;
|
|
7379
|
+
if (!actionButtons?.length) {
|
|
7380
|
+
return false;
|
|
7381
|
+
}
|
|
7382
|
+
return actionButtons
|
|
7383
|
+
.toArray()
|
|
7384
|
+
.some((button) => button instanceof IgxGridPinningActionsComponent &&
|
|
7385
|
+
button.asMenuItems);
|
|
7386
|
+
}
|
|
7364
7387
|
horizontalScrollHandler(event) {
|
|
7365
7388
|
const scrollLeft = event.target.scrollLeft;
|
|
7366
7389
|
this.headerContainer.onHScroll(scrollLeft);
|
|
@@ -7736,16 +7759,15 @@ class IgxGridBaseDirective {
|
|
|
7736
7759
|
// recalc merged data
|
|
7737
7760
|
if (this.columnsToMerge.length > 0) {
|
|
7738
7761
|
const startIndex = this.verticalScrollContainer.state.startIndex;
|
|
7739
|
-
const prevDataView = this.verticalScrollContainer.igxForOf?.slice(0, startIndex);
|
|
7740
7762
|
const data = [];
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
}
|
|
7763
|
+
const rec = this.verticalScrollContainer.igxForOf[startIndex];
|
|
7764
|
+
if (rec && rec.cellMergeMeta) {
|
|
7765
|
+
this.columnsToMerge.forEach((col) => {
|
|
7766
|
+
const root = rec.cellMergeMeta?.get(col.field)?.root;
|
|
7767
|
+
if (root) {
|
|
7768
|
+
data.push({ record: root, index: root.index, dataIndex: root.index });
|
|
7769
|
+
}
|
|
7770
|
+
});
|
|
7749
7771
|
}
|
|
7750
7772
|
this._mergedDataInView = data;
|
|
7751
7773
|
this.notifyChanges();
|