@saltcorn/markup
Advanced tools
Comparing version 0.6.4-beta.4 to 0.6.4-beta.5
@@ -1,5 +0,1 @@ | ||
/** | ||
* @category saltcorn-markup | ||
* @module saltcorn-markup/index | ||
*/ | ||
import mkTable = require("./table"); | ||
@@ -6,0 +2,0 @@ declare const _default: { |
"use strict"; | ||
/** | ||
* @category saltcorn-markup | ||
* @module saltcorn-markup/index | ||
* This is the saltcorn-markup package | ||
* @module | ||
*/ | ||
/** | ||
* All files in the saltcorn-markup package. | ||
* @namespace saltcorn-markup_overview | ||
* @property {module:builder} builder | ||
* @property {module:emergency_layout} emergency_layout | ||
* @property {module:form} from | ||
* @property {module:helpers} helpers | ||
* @property {module:layout_utils} layout_utils | ||
* @property {module:layout} layout | ||
* @property {module:mktag} mktag | ||
* @property {module:table} table | ||
* @property {module:tabs} tabs | ||
* @category saltcorn-markup | ||
*/ | ||
const renderForm = require("./form"); | ||
@@ -33,20 +19,20 @@ const renderBuilder = require("./builder"); | ||
/** | ||
* @param {string} href | ||
* @param {string} s | ||
* @param {string} csrfToken | ||
* @param {object} opts | ||
* @param {string} [opts.btnClass = "btn-primary"] | ||
* @param {string} [opts.onClick] | ||
* @param {string} [opts.small] | ||
* @param {string} [opts.style] | ||
* @param {*} opts.ajax | ||
* @param {string} opts.reload_on_done | ||
* @param {string} opts.reload_delay | ||
* @param {string} [opts.klass = "btn-primary"] | ||
* @param {string} [opts.formClass] | ||
* @param {string} opts.spinner | ||
* @param {object} opts.req | ||
* @param {boolean} opts.confirm | ||
* @param {string} opts.icon | ||
* @returns {string} | ||
* @param href | ||
* @param s | ||
* @param csrfToken | ||
* @param opts | ||
* @param opts.btnClass | ||
* @param opts.onClick | ||
* @param opts.small | ||
* @param opts.style | ||
* @param opts.ajax | ||
* @param opts.reload_on_done | ||
* @param opts.reload_delay | ||
* @param opts.klass | ||
* @param opts.formClass | ||
* @param opts.spinner | ||
* @param opts.req | ||
* @param opts.confirm | ||
* @param opts.icon | ||
* @returns | ||
*/ | ||
@@ -66,6 +52,6 @@ const post_btn = (href, s, csrfToken, { btnClass = "btn-primary", onClick, small, style, ajax, reload_on_done, reload_delay, klass = "", formClass, spinner, req, confirm, icon, } = {}) => `<form action="${text(href)}" method="post"${formClass ? `class="${formClass}"` : ""}> | ||
* UI Form for Delete Item confirmation | ||
* @param {string} href - href | ||
* @param {string} req - Request | ||
* @param {string} [what] - Item | ||
* @returns {string} return html form | ||
* @param href - href | ||
* @param req - Request | ||
* @param what- Item | ||
* @returns return html form | ||
*/ | ||
@@ -82,8 +68,8 @@ const post_delete_btn = (href, req, what) => `<form action="${text(href)}" method="post" > | ||
/** | ||
* @param {string} href | ||
* @param {string} s | ||
* @param {object} req | ||
* @param {boolean} confirm | ||
* @param {string} [what] | ||
* @returns {string} | ||
* @param href | ||
* @param s | ||
* @param req | ||
* @param confirm | ||
* @param what | ||
* @returns | ||
*/ | ||
@@ -102,5 +88,5 @@ const post_dropdown_item = (href, s, req, confirm, what) => { | ||
/** | ||
* @param {string} id | ||
* @param {*} elems | ||
* @returns {div} | ||
* @param id | ||
* @param elems | ||
* @returns | ||
*/ | ||
@@ -120,7 +106,7 @@ const settingsDropdown = (id, elems) => div({ class: "dropdown" }, button({ | ||
/** | ||
* @param {Date} date | ||
* @param {object} opts | ||
* @param {string} [opts.hour = "2-digit"] | ||
* @param {string} [opts.minute = "2-digit"] | ||
* @returns {string} | ||
* @param date | ||
* @param opts | ||
* @param opts.hour | ||
* @param opts.minute | ||
* @returns | ||
*/ | ||
@@ -132,5 +118,5 @@ const localeTime = (date, options = { hour: "2-digit", minute: "2-digit" }) => time({ | ||
/** | ||
* @param {Date} date | ||
* @param {object} [options = {}] | ||
* @returns {string} | ||
* @param date | ||
* @param options | ||
* @returns | ||
*/ | ||
@@ -142,5 +128,5 @@ const localeDateTime = (date, options = {}) => time({ | ||
/** | ||
* @param {Date} date | ||
* @param {object} [options = {}] | ||
* @returns {string} | ||
* @param date | ||
* @param options | ||
* @returns | ||
*/ | ||
@@ -147,0 +133,0 @@ const localeDate = (date, options = {}) => time({ |
{ | ||
"name": "@saltcorn/markup", | ||
"version": "0.6.4-beta.4", | ||
"version": "0.6.4-beta.5", | ||
"description": "Markup for Saltcorn, open-source no-code platform", | ||
"homepage": "https://saltcorn.com", | ||
"main": "index.js", | ||
"main": "./dist/index.js", | ||
"scripts": { | ||
@@ -35,3 +35,3 @@ "test": "jest", | ||
"devDependencies": { | ||
"@saltcorn/types": "0.6.4-beta.4", | ||
"@saltcorn/types": "0.6.4-beta.5", | ||
"@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
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
173355
51
2038