@datorama/core 22.12.7-beta.1 → 22.12.7
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/bundles/datorama-core.umd.js +8 -8
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +29 -29
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.metadata.json +1 -1
- package/esm2015/lib/grid-v2/grid/grid-v2.types.js +4 -4
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +3 -5
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +4 -5
- package/esm2015/lib/grid-v2/grid-store/util.js +4 -1
- package/esm2015/lib/grid-v2/grid-v2.util.js +1 -1
- package/esm2015/lib/icon/icon.types.js +1 -1
- package/esm2015/lib/version.js +1 -1
- package/esm5/lib/grid-v2/grid/grid-v2.types.js +4 -4
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +3 -5
- package/esm5/lib/grid-v2/grid-store/grid.service.js +4 -5
- package/esm5/lib/grid-v2/grid-store/util.js +4 -1
- package/esm5/lib/grid-v2/grid-v2.util.js +1 -1
- package/esm5/lib/icon/icon.types.js +1 -1
- package/esm5/lib/version.js +1 -1
- package/fesm2015/datorama-core.js +8 -8
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +8 -8
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid-store/util.d.ts +2 -0
- package/lib/grid-v2/grid-v2.util.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11554,6 +11554,9 @@
|
|
|
11554
11554
|
}
|
|
11555
11555
|
return value;
|
|
11556
11556
|
}
|
|
11557
|
+
function isHtmlAllowedForCol(gridOptions, colDef) {
|
|
11558
|
+
return (!gridOptions.disabledHTMLRenderingFields || !gridOptions.disabledHTMLRenderingFields.includes(getColField(colDef)));
|
|
11559
|
+
}
|
|
11557
11560
|
|
|
11558
11561
|
var GridQuery = /** @class */ (function (_super) {
|
|
11559
11562
|
__extends(GridQuery, _super);
|
|
@@ -12126,9 +12129,9 @@
|
|
|
12126
12129
|
cellValue = DOMPurify.sanitize(cellValue);
|
|
12127
12130
|
}
|
|
12128
12131
|
searchTerm = (searchTerm || '').trim();
|
|
12129
|
-
return searchTerm
|
|
12130
|
-
cellValue.replace(new RegExp(searchTerm, 'gi'), function (str) { return "<span class=\"search-highlight\">" + str + "</span>"; })
|
|
12131
|
-
cellValue;
|
|
12132
|
+
return searchTerm
|
|
12133
|
+
? cellValue.replace(new RegExp(searchTerm, 'gi'), function (str) { return "<span class=\"search-highlight\">" + str + "</span>"; })
|
|
12134
|
+
: cellValue;
|
|
12132
12135
|
};
|
|
12133
12136
|
|
|
12134
12137
|
(function (GridMinWidths) {
|
|
@@ -14487,8 +14490,7 @@
|
|
|
14487
14490
|
!this.hasCellRenderer(normalized, gridOptions) &&
|
|
14488
14491
|
gridOptions.enableSearchHighlight) {
|
|
14489
14492
|
normalized.cellRenderer = function (params) {
|
|
14490
|
-
var
|
|
14491
|
-
var allowHTML = !gridOptions.disabledHTMLRenderingFields || !gridOptions.disabledHTMLRenderingFields.includes(colField);
|
|
14493
|
+
var allowHTML = isHtmlAllowedForCol(gridOptions, params.colDef);
|
|
14492
14494
|
var isEditable = (isFunction(normalized.editable) && normalized.editable(params)) ||
|
|
14493
14495
|
(!isFunction(normalized.editable) && normalized.editable);
|
|
14494
14496
|
return isEditable
|
|
@@ -15806,7 +15808,6 @@
|
|
|
15806
15808
|
}
|
|
15807
15809
|
var gridApi = { grid: api, columns: columnApi };
|
|
15808
15810
|
_this.gridService._setApi(gridApi, agGrid);
|
|
15809
|
-
debugger;
|
|
15810
15811
|
_this.gridQuery._setApi(gridApi, agGrid);
|
|
15811
15812
|
_this.gridService.initSettings(savedSettings || {});
|
|
15812
15813
|
_this.registerSettingsListeners(gridApi, agGrid);
|
|
@@ -16047,8 +16048,7 @@
|
|
|
16047
16048
|
var textOverflow = cell.offsetWidth < cell.scrollWidth;
|
|
16048
16049
|
if (textOverflow) {
|
|
16049
16050
|
clearTimeout(this.cellMouseOutTimer);
|
|
16050
|
-
var
|
|
16051
|
-
var allowHTML = !this.gridOptions.disabledHTMLRenderingFields || !this.gridOptions.disabledHTMLRenderingFields.includes(colField);
|
|
16051
|
+
var allowHTML = isHtmlAllowedForCol(this.gridOptions, event.colDef);
|
|
16052
16052
|
var params = { cell: cell, value: cell.innerText, allowHTML: allowHTML };
|
|
16053
16053
|
isNil(this.tooltip) ? this.createAndShowTooltip(params) : this.updateTooltip(params);
|
|
16054
16054
|
}
|