igniteui-angular 19.0.4 → 19.0.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.mjs +36 -15
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/lib/core/styles/components/checkbox/_checkbox-component.scss +8 -4
- package/lib/core/styles/components/checkbox/_checkbox-theme.scss +7 -1
- package/lib/core/styles/components/chip/_chip-theme.scss +1 -1
- package/lib/core/styles/components/combo/_combo-theme.scss +2 -2
- package/lib/core/styles/components/grid/_excel-filtering-theme.scss +3 -7
- package/lib/core/styles/components/grid/_grid-theme.scss +19 -15
- package/lib/grids/common/grid.interface.d.ts +4 -0
- package/lib/grids/grid-base.directive.d.ts +5 -2
- package/lib/grids/pivot-grid/pivot-grid.component.d.ts +1 -1
- package/lib/grids/resizing/resizer.directive.d.ts +2 -0
- package/lib/grids/resizing/resizing.service.d.ts +2 -2
- package/package.json +1 -1
- package/styles/igniteui-angular-dark.css +1 -1
- package/styles/igniteui-angular.css +1 -1
- package/styles/igniteui-bootstrap-dark.css +1 -1
- package/styles/igniteui-bootstrap-light.css +1 -1
- package/styles/igniteui-dark-green.css +1 -1
- package/styles/igniteui-fluent-dark-excel.css +1 -1
- package/styles/igniteui-fluent-dark-word.css +1 -1
- package/styles/igniteui-fluent-dark.css +1 -1
- package/styles/igniteui-fluent-light-excel.css +1 -1
- package/styles/igniteui-fluent-light-word.css +1 -1
- package/styles/igniteui-fluent-light.css +1 -1
- package/styles/igniteui-indigo-dark.css +1 -1
- package/styles/igniteui-indigo-light.css +1 -1
- package/styles/maps/igniteui-angular-dark.css.map +1 -1
- package/styles/maps/igniteui-angular.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
- package/styles/maps/igniteui-dark-green.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-light.css.map +1 -1
- package/styles/maps/igniteui-indigo-dark.css.map +1 -1
- package/styles/maps/igniteui-indigo-light.css.map +1 -1
|
@@ -44711,7 +44711,10 @@ class IgxColumnComponent {
|
|
|
44711
44711
|
const colWidth = this.width;
|
|
44712
44712
|
const isPercentageWidth = colWidth && typeof colWidth === 'string' && colWidth.indexOf('%') !== -1;
|
|
44713
44713
|
const isAutoWidth = colWidth && typeof colWidth === 'string' && colWidth === 'fit-content';
|
|
44714
|
-
if (isPercentageWidth) {
|
|
44714
|
+
if (isPercentageWidth && this.grid.isColumnWidthSum) {
|
|
44715
|
+
this._calcWidth = this.grid.minColumnWidth;
|
|
44716
|
+
}
|
|
44717
|
+
else if (isPercentageWidth) {
|
|
44715
44718
|
this._calcWidth = Math.floor(parseFloat(colWidth) / 100 * this.grid.calcWidth);
|
|
44716
44719
|
}
|
|
44717
44720
|
else if (!colWidth || isAutoWidth && !this.autoSize) {
|
|
@@ -49431,8 +49434,8 @@ const GridResourceStringsEN = {
|
|
|
49431
49434
|
igx_grid_excel_custom_dialog_add: 'add filter',
|
|
49432
49435
|
igx_grid_excel_custom_dialog_clear: 'Clear filter',
|
|
49433
49436
|
igx_grid_excel_custom_dialog_header: 'Custom auto-filter on column: ',
|
|
49434
|
-
igx_grid_excel_cancel: '
|
|
49435
|
-
igx_grid_excel_apply: '
|
|
49437
|
+
igx_grid_excel_cancel: 'Cancel',
|
|
49438
|
+
igx_grid_excel_apply: 'Apply',
|
|
49436
49439
|
igx_grid_excel_search_placeholder: 'Search',
|
|
49437
49440
|
igx_grid_excel_select_all: 'Select All',
|
|
49438
49441
|
igx_grid_excel_select_all_search_results: 'Select all search results',
|
|
@@ -50056,6 +50059,7 @@ class IgxExcelStyleCustomDialogComponent {
|
|
|
50056
50059
|
}
|
|
50057
50060
|
onClearButtonClick() {
|
|
50058
50061
|
this.filteringService.clearFilter(this.column.field);
|
|
50062
|
+
this.selectedOperator = null;
|
|
50059
50063
|
this.createInitialExpressionUIElement();
|
|
50060
50064
|
this.cdr.detectChanges();
|
|
50061
50065
|
}
|
|
@@ -55043,7 +55047,8 @@ class IgxGridExcelStyleFilteringComponent extends BaseFilteringComponent {
|
|
|
55043
55047
|
this.filterValues = this.generateFilterValues();
|
|
55044
55048
|
this.generateListData();
|
|
55045
55049
|
this.expressionsList.forEach(expr => {
|
|
55046
|
-
if (this.column.dataType === GridColumnDataType.String && this.column.filteringIgnoreCase &&
|
|
55050
|
+
if (this.column.dataType === GridColumnDataType.String && this.column.filteringIgnoreCase &&
|
|
55051
|
+
expr.expression.searchVal && expr.expression.searchVal instanceof Set) {
|
|
55047
55052
|
this.modifyExpression(expr);
|
|
55048
55053
|
}
|
|
55049
55054
|
});
|
|
@@ -55948,7 +55953,7 @@ class IgxColumnResizingService {
|
|
|
55948
55953
|
* @hidden
|
|
55949
55954
|
*/
|
|
55950
55955
|
getColumnHeaderRenderedWidth() {
|
|
55951
|
-
return this.column.headerCell.nativeElement
|
|
55956
|
+
return parseFloat(window.getComputedStyle(this.column.headerCell.nativeElement).width);
|
|
55952
55957
|
}
|
|
55953
55958
|
/**
|
|
55954
55959
|
* @hidden
|
|
@@ -56004,9 +56009,9 @@ class IgxColumnResizingService {
|
|
|
56004
56009
|
/**
|
|
56005
56010
|
* Resizes the column regaridng to the column minWidth and maxWidth.
|
|
56006
56011
|
*/
|
|
56007
|
-
resizeColumn(event) {
|
|
56012
|
+
resizeColumn(event, ratio = 1) {
|
|
56008
56013
|
this.showResizer = false;
|
|
56009
|
-
const diff = event.clientX - this.startResizePos;
|
|
56014
|
+
const diff = (event.clientX - this.startResizePos) / ratio;
|
|
56010
56015
|
const colWidth = this.column.width;
|
|
56011
56016
|
const isPercentageWidth = colWidth && typeof colWidth === 'string' && colWidth.indexOf('%') !== -1;
|
|
56012
56017
|
let currentColWidth = parseFloat(colWidth);
|
|
@@ -60321,6 +60326,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
60321
60326
|
* @internal
|
|
60322
60327
|
*/
|
|
60323
60328
|
class IgxColumnResizerDirective {
|
|
60329
|
+
get ratio() {
|
|
60330
|
+
return this._ratio;
|
|
60331
|
+
}
|
|
60324
60332
|
constructor(element, document, zone) {
|
|
60325
60333
|
this.element = element;
|
|
60326
60334
|
this.document = document;
|
|
@@ -60331,9 +60339,10 @@ class IgxColumnResizerDirective {
|
|
|
60331
60339
|
this.resizeStart = new Subject();
|
|
60332
60340
|
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
60333
60341
|
this.resize = new Subject();
|
|
60342
|
+
this._ratio = 1;
|
|
60334
60343
|
this._destroy = new Subject();
|
|
60335
60344
|
this.resizeStart.pipe(takeUntil(this._destroy), map((event) => event.clientX), switchMap((offset) => this.resize
|
|
60336
|
-
.pipe(takeUntil(this._destroy), takeUntil(this.resizeEnd), map((event) => event.clientX - offset))))
|
|
60345
|
+
.pipe(takeUntil(this._destroy), takeUntil(this.resizeEnd), map((event) => (event.clientX - offset) / (this._ratio)))))
|
|
60337
60346
|
.subscribe((pos) => {
|
|
60338
60347
|
const left = this._left + pos;
|
|
60339
60348
|
const min = this._left - this.restrictHResizeMin;
|
|
@@ -60376,7 +60385,12 @@ class IgxColumnResizerDirective {
|
|
|
60376
60385
|
onMousedown(event) {
|
|
60377
60386
|
event.preventDefault();
|
|
60378
60387
|
const parent = this.element.nativeElement.parentElement.parentElement;
|
|
60379
|
-
|
|
60388
|
+
const parentRectWidth = parent.getBoundingClientRect().width;
|
|
60389
|
+
const parentComputedWidth = parseFloat(window.getComputedStyle(parent).width);
|
|
60390
|
+
if (Math.abs(parentRectWidth - parentComputedWidth) > 1) {
|
|
60391
|
+
this._ratio = parentRectWidth / parentComputedWidth;
|
|
60392
|
+
}
|
|
60393
|
+
this.left = this._left = (event.clientX - parent.getBoundingClientRect().left) / this._ratio;
|
|
60380
60394
|
this.top = event.target.getBoundingClientRect().top - parent.getBoundingClientRect().top;
|
|
60381
60395
|
this.resizeStart.next(event);
|
|
60382
60396
|
}
|
|
@@ -60415,11 +60429,11 @@ class IgxGridColumnResizerComponent {
|
|
|
60415
60429
|
this.colResizingService = colResizingService;
|
|
60416
60430
|
}
|
|
60417
60431
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: IgxGridColumnResizerComponent, deps: [{ token: IgxColumnResizingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
60418
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: IgxGridColumnResizerComponent, isStandalone: true, selector: "igx-grid-column-resizer", inputs: { restrictResizerTop: "restrictResizerTop" }, viewQueries: [{ propertyName: "resizer", first: true, predicate: IgxColumnResizerDirective, descendants: true, static: true }], ngImport: i0, template: "<div class=\"igx-grid-th__resize-line\"\n [style.left.px]=\"-99999\" igxResizer\n [style.height.px]=\"colResizingService.resizerHeight\"\n [restrictHResizeMax]=\"colResizingService.restrictResizeMax\"\n [restrictHResizeMin]=\"colResizingService.restrictResizeMin\"\n [restrictResizerTop]=\"restrictResizerTop\"\n (resizeEnd)=\"colResizingService.resizeColumn($event)\">\n</div>\n", dependencies: [{ kind: "directive", type: IgxColumnResizerDirective, selector: "[igxResizer]", inputs: ["restrictHResizeMin", "restrictHResizeMax", "restrictResizerTop"], outputs: ["resizeEnd", "resizeStart", "resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
60432
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: IgxGridColumnResizerComponent, isStandalone: true, selector: "igx-grid-column-resizer", inputs: { restrictResizerTop: "restrictResizerTop" }, viewQueries: [{ propertyName: "resizer", first: true, predicate: IgxColumnResizerDirective, descendants: true, static: true }], ngImport: i0, template: "<div class=\"igx-grid-th__resize-line\"\n [style.left.px]=\"-99999\" igxResizer\n [style.height.px]=\"colResizingService.resizerHeight\"\n [restrictHResizeMax]=\"colResizingService.restrictResizeMax\"\n [restrictHResizeMin]=\"colResizingService.restrictResizeMin\"\n [restrictResizerTop]=\"restrictResizerTop\"\n (resizeEnd)=\"colResizingService.resizeColumn($event, resizer.ratio)\">\n</div>\n", dependencies: [{ kind: "directive", type: IgxColumnResizerDirective, selector: "[igxResizer]", inputs: ["restrictHResizeMin", "restrictHResizeMax", "restrictResizerTop"], outputs: ["resizeEnd", "resizeStart", "resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
60419
60433
|
}
|
|
60420
60434
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: IgxGridColumnResizerComponent, decorators: [{
|
|
60421
60435
|
type: Component,
|
|
60422
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'igx-grid-column-resizer', imports: [IgxColumnResizerDirective], template: "<div class=\"igx-grid-th__resize-line\"\n [style.left.px]=\"-99999\" igxResizer\n [style.height.px]=\"colResizingService.resizerHeight\"\n [restrictHResizeMax]=\"colResizingService.restrictResizeMax\"\n [restrictHResizeMin]=\"colResizingService.restrictResizeMin\"\n [restrictResizerTop]=\"restrictResizerTop\"\n (resizeEnd)=\"colResizingService.resizeColumn($event)\">\n</div>\n" }]
|
|
60436
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'igx-grid-column-resizer', imports: [IgxColumnResizerDirective], template: "<div class=\"igx-grid-th__resize-line\"\n [style.left.px]=\"-99999\" igxResizer\n [style.height.px]=\"colResizingService.resizerHeight\"\n [restrictHResizeMax]=\"colResizingService.restrictResizeMax\"\n [restrictHResizeMin]=\"colResizingService.restrictResizeMin\"\n [restrictResizerTop]=\"restrictResizerTop\"\n (resizeEnd)=\"colResizingService.resizeColumn($event, resizer.ratio)\">\n</div>\n" }]
|
|
60423
60437
|
}], ctorParameters: () => [{ type: IgxColumnResizingService }], propDecorators: { restrictResizerTop: [{
|
|
60424
60438
|
type: Input
|
|
60425
60439
|
}], resizer: [{
|
|
@@ -64149,6 +64163,10 @@ class IgxGridBaseDirective {
|
|
|
64149
64163
|
* @hidden @internal
|
|
64150
64164
|
*/
|
|
64151
64165
|
this.filteringPipeTrigger = 0;
|
|
64166
|
+
/**
|
|
64167
|
+
* @hidden @internal
|
|
64168
|
+
*/
|
|
64169
|
+
this.isColumnWidthSum = false;
|
|
64152
64170
|
/**
|
|
64153
64171
|
* @hidden @internal
|
|
64154
64172
|
*/
|
|
@@ -64277,7 +64295,6 @@ class IgxGridBaseDirective {
|
|
|
64277
64295
|
this._rowSelectionMode = GridSelectionMode.none;
|
|
64278
64296
|
this._selectRowOnClick = true;
|
|
64279
64297
|
this._columnSelectionMode = GridSelectionMode.none;
|
|
64280
|
-
this.isColumnWidthSum = false;
|
|
64281
64298
|
this.rowEditPositioningStrategy = new RowEditPositionStrategy({
|
|
64282
64299
|
horizontalDirection: HorizontalAlignment.Right,
|
|
64283
64300
|
verticalDirection: VerticalAlignment.Bottom,
|
|
@@ -67091,8 +67108,11 @@ class IgxGridBaseDirective {
|
|
|
67091
67108
|
width = this.nativeElement.offsetWidth;
|
|
67092
67109
|
}
|
|
67093
67110
|
if (this.width === null || !width) {
|
|
67094
|
-
width = this.getColumnWidthSum();
|
|
67095
67111
|
this.isColumnWidthSum = true;
|
|
67112
|
+
width = this.getColumnWidthSum();
|
|
67113
|
+
}
|
|
67114
|
+
else {
|
|
67115
|
+
this.isColumnWidthSum = false;
|
|
67096
67116
|
}
|
|
67097
67117
|
if (this.hasVerticalScroll() && this.width !== null) {
|
|
67098
67118
|
width -= this.scrollSize;
|
|
@@ -74631,11 +74651,11 @@ class IgxPivotGridColumnResizerComponent extends IgxGridColumnResizerComponent {
|
|
|
74631
74651
|
this.colResizingService = colResizingService;
|
|
74632
74652
|
}
|
|
74633
74653
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: IgxPivotGridColumnResizerComponent, deps: [{ token: IgxPivotColumnResizingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
74634
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: IgxPivotGridColumnResizerComponent, isStandalone: true, selector: "igx-pivot-grid-column-resizer", usesInheritance: true, ngImport: i0, template: "<div class=\"igx-grid-th__resize-line\"\n [style.left.px]=\"-99999\" igxResizer\n [style.height.px]=\"colResizingService.resizerHeight\"\n [restrictHResizeMax]=\"colResizingService.restrictResizeMax\"\n [restrictHResizeMin]=\"colResizingService.restrictResizeMin\"\n [restrictResizerTop]=\"restrictResizerTop\"\n (resizeEnd)=\"colResizingService.resizeColumn($event)\">\n</div>\n", dependencies: [{ kind: "directive", type: IgxColumnResizerDirective, selector: "[igxResizer]", inputs: ["restrictHResizeMin", "restrictHResizeMax", "restrictResizerTop"], outputs: ["resizeEnd", "resizeStart", "resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
74654
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: IgxPivotGridColumnResizerComponent, isStandalone: true, selector: "igx-pivot-grid-column-resizer", usesInheritance: true, ngImport: i0, template: "<div class=\"igx-grid-th__resize-line\"\n [style.left.px]=\"-99999\" igxResizer\n [style.height.px]=\"colResizingService.resizerHeight\"\n [restrictHResizeMax]=\"colResizingService.restrictResizeMax\"\n [restrictHResizeMin]=\"colResizingService.restrictResizeMin\"\n [restrictResizerTop]=\"restrictResizerTop\"\n (resizeEnd)=\"colResizingService.resizeColumn($event, resizer.ratio)\">\n</div>\n", dependencies: [{ kind: "directive", type: IgxColumnResizerDirective, selector: "[igxResizer]", inputs: ["restrictHResizeMin", "restrictHResizeMax", "restrictResizerTop"], outputs: ["resizeEnd", "resizeStart", "resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
74635
74655
|
}
|
|
74636
74656
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: IgxPivotGridColumnResizerComponent, decorators: [{
|
|
74637
74657
|
type: Component,
|
|
74638
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'igx-pivot-grid-column-resizer', imports: [IgxColumnResizerDirective], template: "<div class=\"igx-grid-th__resize-line\"\n [style.left.px]=\"-99999\" igxResizer\n [style.height.px]=\"colResizingService.resizerHeight\"\n [restrictHResizeMax]=\"colResizingService.restrictResizeMax\"\n [restrictHResizeMin]=\"colResizingService.restrictResizeMin\"\n [restrictResizerTop]=\"restrictResizerTop\"\n (resizeEnd)=\"colResizingService.resizeColumn($event)\">\n</div>\n" }]
|
|
74658
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'igx-pivot-grid-column-resizer', imports: [IgxColumnResizerDirective], template: "<div class=\"igx-grid-th__resize-line\"\n [style.left.px]=\"-99999\" igxResizer\n [style.height.px]=\"colResizingService.resizerHeight\"\n [restrictHResizeMax]=\"colResizingService.restrictResizeMax\"\n [restrictHResizeMin]=\"colResizingService.restrictResizeMin\"\n [restrictResizerTop]=\"restrictResizerTop\"\n (resizeEnd)=\"colResizingService.resizeColumn($event, resizer.ratio)\">\n</div>\n" }]
|
|
74639
74659
|
}], ctorParameters: () => [{ type: IgxPivotColumnResizingService }] });
|
|
74640
74660
|
|
|
74641
74661
|
class DefaultPivotGridRecordSortingStrategy extends DefaultSortingStrategy {
|
|
@@ -83426,6 +83446,7 @@ class IgxHierarchicalGridBaseDirective extends IgxGridBaseDirective {
|
|
|
83426
83446
|
const columns = [];
|
|
83427
83447
|
const topLevelCols = cols.filter(c => c.level === 0);
|
|
83428
83448
|
topLevelCols.forEach((col) => {
|
|
83449
|
+
col.grid = this;
|
|
83429
83450
|
const ref = this._createColumn(col);
|
|
83430
83451
|
ref.changeDetectorRef.detectChanges();
|
|
83431
83452
|
columns.push(ref.instance);
|