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

@saltcorn/markup

Package Overview
Dependencies
Maintainers
1
Versions
406
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 0.6.3-beta.2 to 0.6.3-beta.3

21

dist/form.js

@@ -130,3 +130,8 @@ "use strict";

if (Array.isArray(v[hdr.form_name]) && v[hdr.form_name].length > 0) {
return (div({ class: `repeats-${hdr.form_name}` }, v[hdr.form_name].map((vi, ix) => {
return (div({
class: `repeats-${hdr.form_name}`,
...(hdr.showIf && {
"data-show-if": mkShowIf(hdr.showIf),
}),
}, v[hdr.form_name].map((vi, ix) => {
return div({ class: `form-repeat form-namespace repeat-${hdr.form_name}` }, icons, hdr.fields.map((f) => {

@@ -138,3 +143,8 @@ return mkFormRowForField(vi, errors, formStyle, labelCols, "_" + ix)(f);

else {
return (div({ class: `repeats-${hdr.form_name}` }, div({ class: `form-repeat form-namespace repeat-${hdr.form_name}` }, icons, hdr.fields.map((f) => {
return (div({
class: `repeats-${hdr.form_name}`,
...(hdr.showIf && {
"data-show-if": mkShowIf(hdr.showIf),
}),
}, div({ class: `form-repeat form-namespace repeat-${hdr.form_name}` }, icons, hdr.fields.map((f) => {
return mkFormRowForField(v, errors, formStyle, labelCols, "_0")(f);

@@ -204,9 +214,14 @@ }))) + adder);

field(segment) {
const field = form.fields.find((f) => f.name === segment.field_name);
const field0 = form.fields.find((f) => f.name === segment.field_name);
const field = { ...field0 };
if ((0, abstract_field_1.instanceOfField)(field) && field.input_type !== "hidden") {
if (field.sourceURL)
return div({ "data-source-url": field.sourceURL });
if ((0, abstract_field_1.instanceOfField)(field0))
field.form_name = field0.form_name;
const errorFeedback = form.errors[field.name]
? `<div class="invalid-feedback">${text(form.errors[field.name])}</div>`
: "";
if (segment.fieldview)
field.fieldview = segment.fieldview;
field.attributes = { ...field.attributes, ...segment.configuration };

@@ -213,0 +228,0 @@ return innerField(form.values, form.errors)(field) + errorFeedback;

4

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

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

"devDependencies": {
"@saltcorn/types": "0.6.3-beta.2",
"@saltcorn/types": "0.6.3-beta.3",
"@types/escape-html": "^1.0.1",

@@ -38,0 +38,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

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