ps-toolkit-ui 0.2.33 → 0.2.34
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/ps-toolkit-ui.umd.js +4 -0
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/enum.class.js +2 -1
- package/esm2015/lib/components/table/row/table.row.component.js +4 -1
- package/fesm2015/ps-toolkit-ui.js +4 -0
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/enum.class.d.ts +2 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -794,6 +794,7 @@
|
|
|
794
794
|
TableCollType[TableCollType["FileSize"] = 12] = "FileSize";
|
|
795
795
|
TableCollType[TableCollType["Bool"] = 13] = "Bool";
|
|
796
796
|
TableCollType[TableCollType["Options"] = 14] = "Options";
|
|
797
|
+
TableCollType[TableCollType["Color"] = 15] = "Color";
|
|
797
798
|
})(exports.TableCollType || (exports.TableCollType = {}));
|
|
798
799
|
(function (UserType) {
|
|
799
800
|
UserType[UserType["All"] = 0] = "All";
|
|
@@ -2818,6 +2819,9 @@
|
|
|
2818
2819
|
else if (col.type === exports.TableCollType.Time) {
|
|
2819
2820
|
return HelperClass.getTime(cv);
|
|
2820
2821
|
}
|
|
2822
|
+
else if (col.type === exports.TableCollType.Color) {
|
|
2823
|
+
return '<div style="float: right; padding: 0 10px; border-radius: var(--border-radius-base); background-color: ' + cv + '">' + cv + '</div>';
|
|
2824
|
+
}
|
|
2821
2825
|
else if (col.type === exports.TableCollType.Url) {
|
|
2822
2826
|
return '<a target="_blank" href="' + cv + '">' + cv + '</a>';
|
|
2823
2827
|
}
|