igniteui-angular 16.1.0-beta.1 → 16.1.0-beta.3
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/esm2022/lib/core/density.mjs +8 -2
- package/esm2022/lib/directives/text-highlight/text-highlight.directive.mjs +2 -3
- package/esm2022/lib/directives/toggle/toggle.directive.mjs +10 -1
- package/esm2022/lib/grids/common/events.mjs +1 -1
- package/esm2022/lib/grids/grid-base.directive.mjs +10 -8
- package/fesm2022/igniteui-angular.mjs +26 -10
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/lib/core/density.d.ts +14 -1
- package/lib/directives/layout/layout.directive.d.ts +1 -1
- package/lib/directives/text-highlight/text-highlight.directive.d.ts +10 -4
- package/lib/grids/common/events.d.ts +3 -22
- package/lib/grids/grid-base.directive.d.ts +0 -1
- package/package.json +1 -1
|
@@ -8542,6 +8542,10 @@ const DisplayDensity = mkenum({
|
|
|
8542
8542
|
compact: 'compact',
|
|
8543
8543
|
});
|
|
8544
8544
|
/**
|
|
8545
|
+
* @deprecated since version 16.1.x.
|
|
8546
|
+
* Please use the `--ig-size` CSS custom property.
|
|
8547
|
+
* @see {@link [Update Guide](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/update-guide#from-160x-to-161x)}
|
|
8548
|
+
*
|
|
8545
8549
|
* @hidden
|
|
8546
8550
|
* Defines the DisplayDensity DI token.
|
|
8547
8551
|
*/
|
|
@@ -8553,7 +8557,9 @@ const DisplayDensityToken = new InjectionToken('DisplayDensity');
|
|
|
8553
8557
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
8554
8558
|
class DisplayDensityBase {
|
|
8555
8559
|
/**
|
|
8556
|
-
* @deprecated since version 16.1.x.
|
|
8560
|
+
* @deprecated since version 16.1.x.
|
|
8561
|
+
* Please use the `--ig-size` CSS custom property.
|
|
8562
|
+
* @see {@link [Update Guide](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/update-guide#from-160x-to-161x)}
|
|
8557
8563
|
*
|
|
8558
8564
|
* Returns the theme of the component.
|
|
8559
8565
|
* The default theme is `comfortable`.
|
|
@@ -18379,8 +18385,7 @@ class IgxTextHighlightDirective {
|
|
|
18379
18385
|
content: this.value,
|
|
18380
18386
|
matchCount: 0,
|
|
18381
18387
|
caseSensitive: false,
|
|
18382
|
-
exactMatch: false
|
|
18383
|
-
activeMatchIndex: 0
|
|
18388
|
+
exactMatch: false
|
|
18384
18389
|
};
|
|
18385
18390
|
this._container = this.parentElement.firstElementChild;
|
|
18386
18391
|
}
|
|
@@ -19075,6 +19080,15 @@ class IgxToggleDirective {
|
|
|
19075
19080
|
if (openAnimationStarted || !(this._collapsed || closeAnimationStarted)) {
|
|
19076
19081
|
return;
|
|
19077
19082
|
}
|
|
19083
|
+
const target = overlaySettings && overlaySettings.target;
|
|
19084
|
+
// Get the size from the target element
|
|
19085
|
+
if (target && target instanceof Element) {
|
|
19086
|
+
const styles = window.getComputedStyle(target);
|
|
19087
|
+
const componentSize = styles.getPropertyValue('--component-size');
|
|
19088
|
+
const globalSize = styles.getPropertyValue('--ig-size');
|
|
19089
|
+
const size = componentSize || globalSize || '3';
|
|
19090
|
+
this.elementRef.nativeElement.style.setProperty('--ig-size', size);
|
|
19091
|
+
}
|
|
19078
19092
|
this._collapsed = false;
|
|
19079
19093
|
this.cdr.detectChanges();
|
|
19080
19094
|
if (!info) {
|
|
@@ -64078,6 +64092,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
64078
64092
|
caseSensitive: false,
|
|
64079
64093
|
exactMatch: false,
|
|
64080
64094
|
activeMatchIndex: 0,
|
|
64095
|
+
matchInfoCache: [],
|
|
64081
64096
|
matchCount: 0,
|
|
64082
64097
|
content: ''
|
|
64083
64098
|
};
|
|
@@ -64256,7 +64271,6 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
64256
64271
|
this._sortHeaderIconTemplate = null;
|
|
64257
64272
|
this._sortAscendingHeaderIconTemplate = null;
|
|
64258
64273
|
this._sortDescendingHeaderIconTemplate = null;
|
|
64259
|
-
this._matchInfoCache = [];
|
|
64260
64274
|
/**
|
|
64261
64275
|
* @hidden @internal
|
|
64262
64276
|
*/
|
|
@@ -65849,7 +65863,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
65849
65863
|
this.rebuildMatchCache();
|
|
65850
65864
|
if (updateActiveInfo) {
|
|
65851
65865
|
const activeInfo = IgxTextHighlightDirective.highlightGroupsMap.get(this.id);
|
|
65852
|
-
this.
|
|
65866
|
+
this.lastSearchInfo.matchInfoCache.forEach((match, i) => {
|
|
65853
65867
|
if (match.column === activeInfo.column &&
|
|
65854
65868
|
match.row === activeInfo.row &&
|
|
65855
65869
|
match.index === activeInfo.index &&
|
|
@@ -65878,6 +65892,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
65878
65892
|
caseSensitive: false,
|
|
65879
65893
|
exactMatch: false,
|
|
65880
65894
|
activeMatchIndex: 0,
|
|
65895
|
+
matchInfoCache: [],
|
|
65881
65896
|
matchCount: 0,
|
|
65882
65897
|
content: ''
|
|
65883
65898
|
};
|
|
@@ -68080,6 +68095,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
68080
68095
|
activeMatchIndex: 0,
|
|
68081
68096
|
caseSensitive: caseSensitiveResolved,
|
|
68082
68097
|
exactMatch: exactMatchResolved,
|
|
68098
|
+
matchInfoCache: [],
|
|
68083
68099
|
matchCount: 0,
|
|
68084
68100
|
content: ''
|
|
68085
68101
|
};
|
|
@@ -68105,7 +68121,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
68105
68121
|
this.lastSearchInfo.activeMatchIndex = this.lastSearchInfo.matchCount - 1;
|
|
68106
68122
|
}
|
|
68107
68123
|
if (this.lastSearchInfo.matchCount > 0) {
|
|
68108
|
-
const matchInfo = this.
|
|
68124
|
+
const matchInfo = this.lastSearchInfo.matchInfoCache[this.lastSearchInfo.activeMatchIndex];
|
|
68109
68125
|
this.lastSearchInfo = { ...this.lastSearchInfo };
|
|
68110
68126
|
if (scroll !== false) {
|
|
68111
68127
|
this.scrollTo(matchInfo.row, matchInfo.column);
|
|
@@ -68123,7 +68139,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
68123
68139
|
return this.lastSearchInfo.matchCount;
|
|
68124
68140
|
}
|
|
68125
68141
|
rebuildMatchCache() {
|
|
68126
|
-
this.
|
|
68142
|
+
this.lastSearchInfo.matchInfoCache = [];
|
|
68127
68143
|
const caseSensitive = this.lastSearchInfo.caseSensitive;
|
|
68128
68144
|
const exactMatch = this.lastSearchInfo.exactMatch;
|
|
68129
68145
|
const searchText = caseSensitive ? this.lastSearchInfo.searchText : this.lastSearchInfo.searchText.toLowerCase();
|
|
@@ -68147,7 +68163,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
68147
68163
|
index: 0,
|
|
68148
68164
|
metadata: new Map([['pinned', this.isRecordPinnedByIndex(rowIndex)]])
|
|
68149
68165
|
};
|
|
68150
|
-
this.
|
|
68166
|
+
this.lastSearchInfo.matchInfoCache.push(mic);
|
|
68151
68167
|
}
|
|
68152
68168
|
}
|
|
68153
68169
|
else {
|
|
@@ -68160,7 +68176,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
68160
68176
|
index: occurrenceIndex++,
|
|
68161
68177
|
metadata: new Map([['pinned', this.isRecordPinnedByIndex(rowIndex)]])
|
|
68162
68178
|
};
|
|
68163
|
-
this.
|
|
68179
|
+
this.lastSearchInfo.matchInfoCache.push(mic);
|
|
68164
68180
|
searchValue = searchValue.substring(searchIndex + searchText.length);
|
|
68165
68181
|
searchIndex = searchValue.indexOf(searchText);
|
|
68166
68182
|
}
|
|
@@ -68168,7 +68184,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
68168
68184
|
}
|
|
68169
68185
|
});
|
|
68170
68186
|
});
|
|
68171
|
-
this.lastSearchInfo.matchCount = this.
|
|
68187
|
+
this.lastSearchInfo.matchCount = this.lastSearchInfo.matchInfoCache.length;
|
|
68172
68188
|
}
|
|
68173
68189
|
// TODO: About to Move to CRUD
|
|
68174
68190
|
configureRowEditingOverlay(rowID, useOuter = false) {
|