@saltcorn/server 0.9.3-rc.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/help/index.js +1 -0
- package/locales/en.json +3 -1
- package/package.json +8 -8
- package/public/saltcorn-common.js +12 -7
package/help/index.js
CHANGED
package/locales/en.json
CHANGED
|
@@ -1342,5 +1342,7 @@
|
|
|
1342
1342
|
"Row click URL": "Row click URL",
|
|
1343
1343
|
"Formula. Navigate to this URL when row is clicked": "Formula. Navigate to this URL when row is clicked",
|
|
1344
1344
|
"Time of day": "Time of day",
|
|
1345
|
-
"UTC timezone": "UTC timezone"
|
|
1345
|
+
"UTC timezone": "UTC timezone",
|
|
1346
|
+
"Show if formula": "Show if formula",
|
|
1347
|
+
"Show link or embed if true, don't show if false. Based on state variables from URL query string and <code>user</code>. For the full state use <code>row</code>. Example: <code>!!row.createlink</code> to show link if and only if state has <code>createlink</code>.": "Show link or embed if true, don't show if false. Based on state variables from URL query string and <code>user</code>. For the full state use <code>row</code>. Example: <code>!!row.createlink</code> to show link if and only if state has <code>createlink</code>."
|
|
1346
1348
|
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/server",
|
|
3
|
-
"version": "0.9.3
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Server app for Saltcorn, open-source no-code platform",
|
|
5
5
|
"homepage": "https://saltcorn.com",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@aws-sdk/client-s3": "^3.451.0",
|
|
10
|
-
"@saltcorn/base-plugin": "0.9.3
|
|
11
|
-
"@saltcorn/builder": "0.9.3
|
|
12
|
-
"@saltcorn/data": "0.9.3
|
|
13
|
-
"@saltcorn/admin-models": "0.9.3
|
|
14
|
-
"@saltcorn/filemanager": "0.9.3
|
|
15
|
-
"@saltcorn/markup": "0.9.3
|
|
16
|
-
"@saltcorn/sbadmin2": "0.9.3
|
|
10
|
+
"@saltcorn/base-plugin": "0.9.3",
|
|
11
|
+
"@saltcorn/builder": "0.9.3",
|
|
12
|
+
"@saltcorn/data": "0.9.3",
|
|
13
|
+
"@saltcorn/admin-models": "0.9.3",
|
|
14
|
+
"@saltcorn/filemanager": "0.9.3",
|
|
15
|
+
"@saltcorn/markup": "0.9.3",
|
|
16
|
+
"@saltcorn/sbadmin2": "0.9.3",
|
|
17
17
|
"@socket.io/cluster-adapter": "^0.2.1",
|
|
18
18
|
"@socket.io/sticky": "^1.0.1",
|
|
19
19
|
"adm-zip": "0.5.10",
|
|
@@ -105,13 +105,17 @@ function apply_showif() {
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
$("[data-dyn-href]").each(function (ix, element) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
try {
|
|
109
|
+
const e = $(element);
|
|
110
|
+
const rec = get_form_record(e);
|
|
111
|
+
const href = new Function(
|
|
112
|
+
`{${Object.keys(rec).filter(valid_js_var_name).join(",")}}`,
|
|
113
|
+
"return " + e.attr("data-dyn-href")
|
|
114
|
+
)(rec);
|
|
115
|
+
e.attr("href", href);
|
|
116
|
+
} catch (e) {
|
|
117
|
+
if (window._sc_loglevel > 4) console.error(e);
|
|
118
|
+
}
|
|
115
119
|
});
|
|
116
120
|
$("[data-calc-options]").each(function (ix, element) {
|
|
117
121
|
var e = $(element);
|
|
@@ -423,6 +427,7 @@ function get_form_record(e_in, select_labels) {
|
|
|
423
427
|
|
|
424
428
|
e.find("input[name],select[name],textarea[name]").each(function () {
|
|
425
429
|
const $this = $(this);
|
|
430
|
+
if ($this.prop("disabled")) return;
|
|
426
431
|
const name = $this.attr("data-fieldname") || $this.attr("name");
|
|
427
432
|
if (select_labels && $this.prop("tagName").toLowerCase() === "select")
|
|
428
433
|
rec[name] = $this.find("option:selected").text();
|