@sd-angular/core 0.0.1035 → 0.0.1036
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/sd-angular-core-grid-material.umd.js +4 -3
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/esm2015/grid-material/src/lib/pipes/column-badge.pipe.js +5 -4
- package/fesm2015/sd-angular-core-grid-material.js +4 -3
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-0.0.1035.tgz → sd-angular-core-0.0.1036.tgz} +0 -0
|
@@ -3227,18 +3227,19 @@
|
|
|
3227
3227
|
function SdColumnBadgePipe() {
|
|
3228
3228
|
}
|
|
3229
3229
|
SdColumnBadgePipe.prototype.transform = function (value, rowData, column) {
|
|
3230
|
+
var _a, _b, _c;
|
|
3230
3231
|
if (column.type === 'string' && (column === null || column === void 0 ? void 0 : column.badge)) {
|
|
3231
3232
|
return {
|
|
3232
3233
|
type: !(column === null || column === void 0 ? void 0 : column.badgeType) ? 'round' : column.badgeType,
|
|
3233
3234
|
color: column.badge(value, rowData),
|
|
3234
|
-
icon: column.badgeIcon(value, rowData)
|
|
3235
|
+
icon: (_a = column === null || column === void 0 ? void 0 : column.badgeIcon) === null || _a === void 0 ? void 0 : _a.call(column, value, rowData)
|
|
3235
3236
|
};
|
|
3236
3237
|
}
|
|
3237
3238
|
if (column.type === 'number' && (column === null || column === void 0 ? void 0 : column.badge)) {
|
|
3238
3239
|
return {
|
|
3239
3240
|
type: !(column === null || column === void 0 ? void 0 : column.badgeType) ? 'round' : column.badgeType,
|
|
3240
3241
|
color: column.badge(value, rowData),
|
|
3241
|
-
icon: column.badgeIcon(value, rowData)
|
|
3242
|
+
icon: (_b = column === null || column === void 0 ? void 0 : column.badgeIcon) === null || _b === void 0 ? void 0 : _b.call(column, value, rowData)
|
|
3242
3243
|
};
|
|
3243
3244
|
}
|
|
3244
3245
|
if (column.type === 'bool') {
|
|
@@ -3252,7 +3253,7 @@
|
|
|
3252
3253
|
return {
|
|
3253
3254
|
type: !(column === null || column === void 0 ? void 0 : column.badgeType) ? 'round' : column.badgeType,
|
|
3254
3255
|
color: column.badge(value, rowData),
|
|
3255
|
-
icon: column.badgeIcon(value, rowData)
|
|
3256
|
+
icon: (_c = column === null || column === void 0 ? void 0 : column.badgeIcon) === null || _c === void 0 ? void 0 : _c.call(column, value, rowData)
|
|
3256
3257
|
};
|
|
3257
3258
|
}
|
|
3258
3259
|
return null;
|