macro detail view

This commit is contained in:
Jan Prochazka
2020-10-30 19:27:19 +01:00
parent ce38f7da4c
commit 5f56aa2cf6
9 changed files with 240 additions and 13 deletions

View File

@@ -0,0 +1,32 @@
const macros = [
{
title: 'Remove diacritics',
name: 'removeDiacritics',
group: 'text',
description: 'Removes diacritics from selected cells',
type: 'transformValue',
code: `value => modules.diacritics.remove(value)`,
},
{
title: 'Search & replace text',
name: 'stringReplace',
group: 'text',
description: 'Search & replace text or regular expression',
type: 'transformValue',
args: [
{
type: 'text',
label: 'Find',
name: 'find',
},
{
type: 'text',
label: 'Replace with',
name: 'replace',
},
],
code: `value => value ? value.toString().replace(args.find, args.replace) : value`,
},
];
export default macros;