@saltcorn/markup
Advanced tools
Comparing version 0.5.4-beta.1 to 0.5.4
{ | ||
"name": "@saltcorn/markup", | ||
"version": "0.5.4-beta.1", | ||
"version": "0.5.4", | ||
"description": "Markup for Saltcorn, open-source no-code platform", | ||
@@ -5,0 +5,0 @@ "homepage": "https://saltcorn.com", |
@@ -20,4 +20,8 @@ const { contract, is } = require("contractis"); | ||
th( | ||
!!hdr.align && { style: "text-align:" + hdr.align }, | ||
!!hdr.sortlink ? a({ href: hdr.sortlink }, hdr.label) : hdr.label | ||
(hdr.align || hdr.width) && { | ||
style: | ||
(hdr.align ? `text-align: ` + hdr.align : "") + | ||
(hdr.width ? `width: ` + hdr.width : ""), | ||
}, | ||
hdr.sortlink ? a({ href: hdr.sortlink }, hdr.label) : hdr.label | ||
); | ||
@@ -54,2 +58,3 @@ | ||
opts.class, | ||
hdrs.some((h) => h.width) && "table-layout-fixed", | ||
(opts.onRowSelect || (opts.hover && vs && vs.length > 1)) && | ||
@@ -56,0 +61,0 @@ "table-hover", |
@@ -71,2 +71,4 @@ const xss = require("xss"); | ||
p: mkTag("p"), | ||
colgroup: mkTag("colgroup"), | ||
col: mkTag("col", true), | ||
table: mkTag("table"), | ||
@@ -73,0 +75,0 @@ img: mkTag("img"), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58769
1992
25
34
149