@pronto-tools-and-more/custom-js-functions 12.48.0 → 12.49.0
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/main.js
CHANGED
@@ -407,6 +407,7 @@
|
|
407
407
|
__export(Functions_exports, {
|
408
408
|
assign: () => assign,
|
409
409
|
bookmarkIdString: () => bookmarkIdString,
|
410
|
+
checkLength: () => checkLength,
|
410
411
|
dateHelper: () => dateHelper,
|
411
412
|
debugId: () => debugId,
|
412
413
|
getPrimaryCategoryProperty: () => getPrimaryCategoryProperty,
|
@@ -423,6 +424,15 @@
|
|
423
424
|
return `$context.${key}`;
|
424
425
|
};
|
425
426
|
|
427
|
+
// src/parts/CheckLength/CheckLength.ts
|
428
|
+
var checkLength = (expression) => {
|
429
|
+
const available = expression && expression.length > 0;
|
430
|
+
if (available) {
|
431
|
+
return "yes";
|
432
|
+
}
|
433
|
+
return "no";
|
434
|
+
};
|
435
|
+
|
426
436
|
// src/parts/DateHelper/DateHelper.ts
|
427
437
|
var import_dayjs = __toESM(require_dayjs_min(), 1);
|
428
438
|
var import_de = __toESM(require_de(), 1);
|
package/package.json
CHANGED