@saltcorn/markup
Advanced tools
Comparing version 1.1.0-beta.13 to 1.1.0-beta.14
@@ -63,3 +63,7 @@ "use strict"; | ||
}, hdr.input_type === "section_header" | ||
? div({ class: `col-sm-12` }, h5(text(hdr.label)), hdr.help && !hdr.sublabel ? helpLink(hdr.help) : "", | ||
? div({ | ||
class: hdr.attributes?.secondColHoriz && isHoriz(fStyle) | ||
? `offset-sm-${labelCols} col-sm-${12 - labelCols}` | ||
: `col-sm-12`, | ||
}, h5(text(hdr.label)), hdr.help && !hdr.sublabel ? helpLink(hdr.help) : "", | ||
//hdr.sublabel && p(i(hdr.sublabel)), | ||
@@ -754,6 +758,6 @@ mkSubLabelAndHelp(hdr)) | ||
? "history.back()" | ||
: "parent.goBack()" | ||
: "parent.saltcorn.mobileApp.navigation.goBack()" | ||
: isWeb | ||
? `history.go(${-1 * configuration.steps})` | ||
: `parent.goBack(${configuration.steps})`; | ||
: `parent.saltcorn.mobileApp.navigation.goBack(${configuration.steps})`; | ||
if (configuration.save_first) { | ||
@@ -893,3 +897,3 @@ const complete = `()=>${doNav}`; | ||
.filter((btn) => !!btn.afterSave === !!afterSave) | ||
.map((btn) => `<button type="button" id="${btn.id}" class="${btn.class}"${btn.onclick ? ` onclick="${btn.onclick}"` : ""} ${btn.disabled ? "disabled" : ""}>${btn.label}</button> `) | ||
.map((btn) => `<button type="button" id="${btn.id}" class="${btn.class}${afterSave ? " ms-2" : ""}"${btn.onclick ? ` onclick="${btn.onclick}"` : ""} ${btn.disabled ? "disabled" : ""}>${btn.label}</button> `) | ||
.join(""); | ||
@@ -967,3 +971,5 @@ const mkFormContentNoLayout = (form, errors = {}) => { | ||
? "" | ||
: `<button type="submit" class="btn ${form.submitButtonClass || "btn-primary"}">${text(form.submitLabel || "Save")}</button>`}${form.additionalButtons | ||
: form.xhrSubmit | ||
? `<button type="button" class="btn ${form.submitButtonClass || "btn-primary"}" onClick="ajaxSubmitForm(this, true)">${text(form.submitLabel || "Save")}</button>` | ||
: `<button type="submit" class="btn ${form.submitButtonClass || "btn-primary"}">${text(form.submitLabel || "Save")}</button>`}${form.additionalButtons | ||
? displayAdditionalButtons(form.additionalButtons, true) | ||
@@ -970,0 +976,0 @@ : ""} |
@@ -435,3 +435,3 @@ "use strict"; | ||
const addQueryParam = !isNode | ||
? `parent.addQueryParam('_tab', ${ix})` | ||
? `parent.saltcorn.mobileApp.navigation.addQueryParam('_tab', ${ix})` | ||
: ""; | ||
@@ -438,0 +438,0 @@ let result = disable_inactive |
{ | ||
"name": "@saltcorn/markup", | ||
"version": "1.1.0-beta.13", | ||
"version": "1.1.0-beta.14", | ||
"description": "Markup for Saltcorn, open-source no-code platform", | ||
@@ -38,3 +38,3 @@ "homepage": "https://saltcorn.com", | ||
"devDependencies": { | ||
"@saltcorn/types": "1.1.0-beta.13", | ||
"@saltcorn/types": "1.1.0-beta.14", | ||
"@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
271554
3524