@saltcorn/markup
Advanced tools
Comparing version 0.9.3-beta.8 to 0.9.3-rc.1
@@ -256,2 +256,10 @@ "use strict"; | ||
return `<textarea mode="${(hdr.attributes || {}).mode || ""}" class="to-code form-control ${validClass} ${hdr.class || ""}"${maybe_disabled} data-fieldname="${text_attr(hdr.form_name)}" name="${text_attr(name)}" id="input${text_attr(name)}">${v[hdr.form_name] || ""}</textarea>`; | ||
case "time_of_day": | ||
return (`<input class="form-control ${validClass} ${hdr.class || ""}"${maybe_disabled} data-fieldname="${text_attr(hdr.form_name)}" name="${text_attr(name)}" id="input${text_attr(name)}" type="text" placeholder="Select time of day.." readonly="readonly" value="${text_attr(v[hdr.form_name])}">` + | ||
script(domReady(`$('#input${text_attr(name)}').flatpickr({ | ||
noCalendar: true, | ||
enableTime: true, | ||
time_24hr: true, | ||
timeFormat: 'H:i' | ||
});`))); | ||
case "file": | ||
@@ -258,0 +266,0 @@ if (hdr.attributes && hdr.attributes.select_file_where) { |
@@ -289,3 +289,4 @@ "use strict"; | ||
}, contents)))), segment.contents && | ||
(segment.contents.type === "tabs" | ||
(segment.contents.type === "tabs" && | ||
segment.contents.tabsStyle !== "Value switch" | ||
? renderTabs({ | ||
@@ -292,0 +293,0 @@ tabClass: "card-header-tabs", |
{ | ||
"name": "@saltcorn/markup", | ||
"version": "0.9.3-beta.8", | ||
"version": "0.9.3-rc.1", | ||
"description": "Markup for Saltcorn, open-source no-code platform", | ||
@@ -38,3 +38,3 @@ "homepage": "https://saltcorn.com", | ||
"devDependencies": { | ||
"@saltcorn/types": "0.9.3-beta.8", | ||
"@saltcorn/types": "0.9.3-rc.1", | ||
"@types/escape-html": "^1.0.1", | ||
@@ -41,0 +41,0 @@ "@types/jest": "^27.0.3", |
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
Sorry, the diff of this file is not supported yet
251179
3319