@saltcorn/markup
Advanced tools
Comparing version 0.9.6-beta.2 to 0.9.6-beta.3
@@ -632,3 +632,3 @@ "use strict"; | ||
if (segment.onchange_action) | ||
field.attributes.onChange = `view_post('${form.viewname}', 'run_action', {onchange_action: '${segment.onchange_action}', onchange_field:'${field.name}', ...get_form_record({viewname: '${form.viewname}'}) })`; | ||
field.attributes.onChange = `view_post(this, 'run_action', {onchange_action: '${segment.onchange_action}', onchange_field:'${field.name}', ...get_form_record(this) })`; | ||
// TODO ch: get it more generic, split up editQuery | ||
@@ -635,0 +635,0 @@ field.attributes.isMobile = !isNode || form.req?.smr; |
@@ -269,3 +269,3 @@ "use strict"; | ||
? segment.url?.startsWith?.("javascript:") | ||
? text_attr(segment.url) | ||
? text_attr(segment.url.replace("javascript:", "")) | ||
: `location.href='${segment.url}'` | ||
@@ -333,3 +333,3 @@ : `execLink('${segment.url}')` | ||
if (segment.type === "tabs") { | ||
return wrap(segment, isTop, ix, renderTabs(segment, go, (segment.serverRendered || !isWeb) | ||
return wrap(segment, isTop, ix, renderTabs(segment, go, segment.serverRendered || !isWeb | ||
? req?.query?.[segment.tabId || "_tab"] | ||
@@ -339,3 +339,3 @@ : undefined, hints)); | ||
if (segment.type === "container") { | ||
const { bgFileId, bgType, bgColor, vAlign, hAlign, block, display, imageSize, borderWidth, borderStyle, setTextColor, textColor, showForRole, hide, customClass, customCSS, minScreenWidth, maxScreenWidth, showIfFormulaInputs, show_for_owner, borderDirection, borderColor, url, hoverColor, gradStartColor, gradEndColor, gradDirection, fullPageWidth, overflow, rotate, style, imgResponsiveWidths, htmlElement, } = segment; | ||
const { bgFileId, bgType, bgColor, vAlign, hAlign, block, display, imageSize, borderWidth, borderStyle, setTextColor, textColor, showForRole, hide, customClass, customCSS, minScreenWidth, maxScreenWidth, showIfFormulaInputs, showIfFormulaJoinFields, show_for_owner, borderDirection, borderColor, url, hoverColor, gradStartColor, gradEndColor, gradDirection, fullPageWidth, overflow, rotate, style, imgResponsiveWidths, htmlElement, } = segment; | ||
if (hide) | ||
@@ -416,3 +416,3 @@ return ""; | ||
? segment.url?.startsWith?.("javascript:") | ||
? text_attr(segment.url) | ||
? text_attr(segment.url.replace("javascript:", "")) | ||
: `location.href='${segment.url}'` | ||
@@ -437,2 +437,7 @@ : `execLink('${segment.url}')` | ||
: {}), | ||
...(showIfFormulaJoinFields | ||
? { | ||
"data-show-if-joinfields": encodeURIComponent(JSON.stringify(showIfFormulaJoinFields)), | ||
} | ||
: {}), | ||
...(!isWeb && hasImgBg && !useImgTagAsBg | ||
@@ -439,0 +444,0 @@ ? { "mobile-bg-img-path": bgFileId } |
{ | ||
"name": "@saltcorn/markup", | ||
"version": "0.9.6-beta.2", | ||
"version": "0.9.6-beta.3", | ||
"description": "Markup for Saltcorn, open-source no-code platform", | ||
@@ -38,3 +38,3 @@ "homepage": "https://saltcorn.com", | ||
"devDependencies": { | ||
"@saltcorn/types": "0.9.6-beta.2", | ||
"@saltcorn/types": "0.9.6-beta.3", | ||
"@types/escape-html": "^1.0.1", | ||
@@ -41,0 +41,0 @@ "@types/jest": "^29.5.11", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
258074
3397