@descope/web-components-ui 1.0.283 → 1.0.285
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/dist/cjs/index.cjs.js +0 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/7044.js +1 -1
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +1 -1
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-grid/descope-grid-custom-column/GridCustomColumnClass.js +2 -2
- package/src/components/descope-grid/descope-grid-text-column/GridTextColumnClass.js +5 -7
- package/src/index.cjs.js +1 -1
package/dist/index.esm.js
CHANGED
@@ -7205,12 +7205,11 @@ class GridTextColumnClass extends GridSortColumn {
|
|
7205
7205
|
}
|
7206
7206
|
|
7207
7207
|
_defaultRenderer(cell, _col, model) {
|
7208
|
-
const
|
7209
|
-
|
7208
|
+
const data = model.item[this.path] || '';
|
7209
|
+
const content = Array.isArray(data) ? data.join(', ') : data;
|
7210
|
+
|
7211
|
+
this.__setTextContent(cell, content);
|
7210
7212
|
cell.title = content;
|
7211
|
-
if (Array.isArray(content)) {
|
7212
|
-
cell.innerHTML = content.join(', ');
|
7213
|
-
}
|
7214
7213
|
}
|
7215
7214
|
|
7216
7215
|
_defaultHeaderRenderer(root, _column) {
|
@@ -7220,8 +7219,7 @@ class GridTextColumnClass extends GridSortColumn {
|
|
7220
7219
|
return;
|
7221
7220
|
}
|
7222
7221
|
|
7223
|
-
|
7224
|
-
root.innerHTML = this.__getHeader(this.header, this.path);
|
7222
|
+
this.__setTextContent(root, this.__getHeader(this.header, this.path));
|
7225
7223
|
}
|
7226
7224
|
}
|
7227
7225
|
|
@@ -7248,13 +7246,13 @@ class GridCustomColumnClass extends GridTextColumnClass {
|
|
7248
7246
|
});
|
7249
7247
|
|
7250
7248
|
if (!contentEle) {
|
7251
|
-
cell
|
7249
|
+
this.__setTextContent(cell, model.item[this.path] || '');
|
7252
7250
|
|
7253
7251
|
return;
|
7254
7252
|
}
|
7255
7253
|
|
7256
7254
|
const newEle = contentEle.cloneNode(true);
|
7257
|
-
newEle.
|
7255
|
+
newEle.textContent = content || '';
|
7258
7256
|
cell.innerHTML = '';
|
7259
7257
|
cell.append(newEle);
|
7260
7258
|
}
|