@saltcorn/markup
Advanced tools
Comparing version 0.6.0-alpha.0 to 0.6.0-beta.0
@@ -44,2 +44,10 @@ const { | ||
}), | ||
link({ | ||
rel: "stylesheet", | ||
type: "text/css", | ||
media: "screen", | ||
href: version_tag | ||
? `/static_assets/${version_tag}/saltcorn-builder.css` | ||
: "/saltcorn-builder.css", | ||
}), | ||
div({ id: "saltcorn-builder" }), | ||
@@ -46,0 +54,0 @@ form( |
@@ -107,3 +107,3 @@ const { | ||
)}" name="${text_attr(name)}" id="input${text_attr(name)}">${text( | ||
v[hdr.form_name] | ||
v[hdr.form_name] || "" | ||
)}</textarea>`; | ||
@@ -118,3 +118,3 @@ case "code": | ||
)}" name="${text_attr(name)}" id="input${text_attr(name)}">${ | ||
v[hdr.form_name] | ||
v[hdr.form_name] || "" | ||
}</textarea>`; | ||
@@ -121,0 +121,0 @@ case "file": |
@@ -285,2 +285,3 @@ const { contract, is } = require("contractis"); | ||
block, | ||
display, | ||
imageSize, | ||
@@ -311,2 +312,3 @@ borderWidth, | ||
rotate, | ||
style, | ||
} = segment; | ||
@@ -328,3 +330,4 @@ if (hide) return ""; | ||
const ppCustomCSS = (s) => (s ? s.split("\n").join("") + ";" : ""); | ||
const baseDisplayClass = block === false ? "inline-block" : "block"; | ||
const baseDisplayClass = | ||
block === false ? "inline-block" : display ? display : "block"; | ||
let displayClass = minScreenWidth | ||
@@ -342,2 +345,6 @@ ? `d-none d-${minScreenWidth}-${baseDisplayClass}` | ||
: `${what}: ${segment[what].map((p) => p + "px").join(" ")};`; | ||
let flexStyles = ""; | ||
Object.keys(style || {}).forEach((k) => { | ||
flexStyles += `${k}:${style[k]};`; | ||
}); | ||
return wrap( | ||
@@ -364,3 +371,3 @@ segment, | ||
style: `${ppCustomCSS(customCSS || "")}${sizeProp( | ||
style: `${flexStyles}${ppCustomCSS(customCSS || "")}${sizeProp( | ||
"minHeight", | ||
@@ -367,0 +374,0 @@ "min-height" |
{ | ||
"name": "@saltcorn/markup", | ||
"version": "0.6.0-alpha.0", | ||
"version": "0.6.0-beta.0", | ||
"description": "Markup for Saltcorn, open-source no-code platform", | ||
@@ -5,0 +5,0 @@ "homepage": "https://saltcorn.com", |
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
62725
2096