Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@saltcorn/markup

Package Overview
Dependencies
Maintainers
0
Versions
401
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saltcorn/markup - npm Package Compare versions

Comparing version 1.0.0-beta.9 to 1.0.0-beta.10

23

dist/form.js

@@ -285,2 +285,25 @@ "use strict";

});`)));
case "time_of_week":
const tow_val = v[hdr.form_name];
let tow_d, tow_h, tow_m;
if (tow_val) {
[tow_d, tow_h, tow_m] = tow_val.split(" ");
}
return (`<input type="hidden" name="${text_attr(name)}" id="inputh${text_attr(name)}" data-fieldname="${text_attr(hdr.form_name)}" value="${text_attr(tow_val)}"><div class="d-flex"><select class="form-control form-select" id="input${text_attr(name)}__day" onchange="update_time_of_week('${text_attr(name)}')(this)">
<option ${tow_d === "Monday" ? "selected" : ""}>Monday</option>
<option ${tow_d === "Tuesday" ? "selected" : ""}>Tuesday</option>
<option ${tow_d === "Wednesday" ? "selected" : ""}>Wednesday</option>
<option ${tow_d === "Thursday" ? "selected" : ""}>Thursday</option>
<option ${tow_d === "Friday" ? "selected" : ""}>Friday</option>
<option ${tow_d === "Saturday" ? "selected" : ""}>Saturday</option>
<option ${tow_d === "Sunday" ? "selected" : ""}>Sunday</option>
</select>
<input class="form-control ${validClass} ${hdr.class || ""}"${maybe_disabled} id="input${text_attr(name)}__time" type="text" placeholder="Select time of day.." ${tow_h && tow_m ? `value="${tow_h}:${tow_m}" ` : 'value="12:00" '}readonly="readonly"></div>` +
script(domReady(`$('#input${text_attr(name)}__time').flatpickr({
noCalendar: true,
enableTime: true,
time_24hr: true,
timeFormat: 'H:i',
onChange: update_time_of_week('${text_attr(name)}')
});`)));
case "date":

@@ -287,0 +310,0 @@ 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 date.." readonly="readonly" value="${text_attr(v[hdr.form_name])}">` +

4

package.json
{
"name": "@saltcorn/markup",
"version": "1.0.0-beta.9",
"version": "1.0.0-beta.10",
"description": "Markup for Saltcorn, open-source no-code platform",

@@ -38,3 +38,3 @@ "homepage": "https://saltcorn.com",

"devDependencies": {
"@saltcorn/types": "1.0.0-beta.9",
"@saltcorn/types": "1.0.0-beta.10",
"@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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc