@budibase/bbui 3.4.23 → 3.4.24
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/dist/bbui.mjs +12 -2
- package/package.json +2 -2
package/dist/bbui.mjs
CHANGED
|
@@ -65813,7 +65813,7 @@ const DEFAULT_FORMAT = "MMMM DD, YYYY", date$1 = (f, u, p) => {
|
|
|
65813
65813
|
setLocale(m.str, m.pattern);
|
|
65814
65814
|
const v = dayjs_min.duration(m.str, m.pattern);
|
|
65815
65815
|
return p && !isOptions(p) ? v.format(p) : v.humanize();
|
|
65816
|
-
}, HelperFunctionBuiltin = ["#if", "#unless", "#each", "#with", "lookup", "log", "blockHelperMissing", "each", "helperMissing", "if", "unless", "log", "lookup", "with"], EXTERNAL_FUNCTION_COLLECTIONS = ["math", "array", "number", "url", "string", "comparison", "object", "regex", "uuid"], HelperFunctionNames = { OBJECT: "object", ALL: "all", LITERAL: "literal", JS: "js" }, LITERAL_MARKER = "%LITERAL%", ADDED_HELPERS = { date: date$1, duration };
|
|
65816
|
+
}, HelperFunctionBuiltin = ["#if", "#unless", "#each", "#with", "lookup", "log", "blockHelperMissing", "each", "helperMissing", "if", "unless", "log", "lookup", "with"], EXTERNAL_FUNCTION_COLLECTIONS = ["math", "array", "number", "url", "string", "comparison", "object", "regex", "uuid"], HelperFunctionNames = { OBJECT: "object", ALL: "all", LITERAL: "literal", JS: "js", DECODE_ID: "decodeId" }, LITERAL_MARKER = "%LITERAL%", ADDED_HELPERS = { date: date$1, duration };
|
|
65817
65817
|
function registerAll$1(f) {
|
|
65818
65818
|
for (let [p, m] of Object.entries(ADDED_HELPERS))
|
|
65819
65819
|
f.registerHelper(p, m);
|
|
@@ -69052,7 +69052,17 @@ const HTML_SWAPS = { "<": "<", ">": ">" };
|
|
|
69052
69052
|
function isObject(f) {
|
|
69053
69053
|
return f != null && typeof f == "object" && (f.toString() === "[object Object]" || f.length > 0 && typeof f[0] == "object");
|
|
69054
69054
|
}
|
|
69055
|
-
const HELPERS = [new Helper(HelperFunctionNames.OBJECT, (f) => new Handlebars.SafeString(JSON.stringify(f))), new Helper(HelperFunctionNames.JS, processJS, !1), new Helper(HelperFunctionNames.
|
|
69055
|
+
const HELPERS = [new Helper(HelperFunctionNames.OBJECT, (f) => new Handlebars.SafeString(JSON.stringify(f))), new Helper(HelperFunctionNames.JS, processJS, !1), new Helper(HelperFunctionNames.DECODE_ID, (f) => {
|
|
69056
|
+
if (!f)
|
|
69057
|
+
return [];
|
|
69058
|
+
const u = typeof f == "string" ? f : f._id, p = decodeURIComponent(u).replace(/'/g, '"');
|
|
69059
|
+
try {
|
|
69060
|
+
const m = JSON.parse(p);
|
|
69061
|
+
return Array.isArray(m) ? m : [m];
|
|
69062
|
+
} catch {
|
|
69063
|
+
return [f];
|
|
69064
|
+
}
|
|
69065
|
+
}), new Helper(HelperFunctionNames.ALL, (f, u) => {
|
|
69056
69066
|
const { __opts: p } = u;
|
|
69057
69067
|
if (isObject(f))
|
|
69058
69068
|
return new Handlebars.SafeString(JSON.stringify(f));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.24",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.ts",
|
|
7
7
|
"module": "dist/bbui.mjs",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "91298a9929a20e89b0672d861cc9deafff68a3e8"
|
|
103
103
|
}
|