2023-05-11 06:44:30 +02:00
|
|
|
const MarkdownProps = {
|
2023-12-12 17:25:51 +01:00
|
|
|
widget: "markdown",
|
2023-05-29 16:22:34 +02:00
|
|
|
toolbar_buttons: {
|
|
|
|
main: [
|
|
|
|
"bold",
|
|
|
|
"italic",
|
|
|
|
"strikethrough",
|
|
|
|
"code",
|
|
|
|
"font",
|
|
|
|
"unordered-list",
|
|
|
|
"ordered-list",
|
|
|
|
"decrease-indent",
|
|
|
|
"increase-indent",
|
|
|
|
"insert-table",
|
|
|
|
"blockquote",
|
|
|
|
"file-link",
|
|
|
|
"code-block",
|
|
|
|
"shortcode",
|
|
|
|
],
|
|
|
|
empty: [],
|
|
|
|
selection: [
|
|
|
|
"bold",
|
|
|
|
"italic",
|
|
|
|
"strikethrough",
|
|
|
|
"code",
|
|
|
|
"font",
|
|
|
|
"file-link",
|
|
|
|
"blockquote",
|
|
|
|
],
|
|
|
|
table_empty: [
|
|
|
|
"bold",
|
|
|
|
"italic",
|
|
|
|
"strikethrough",
|
|
|
|
"code",
|
|
|
|
"insert-row",
|
|
|
|
"delete-row",
|
|
|
|
"insert-column",
|
|
|
|
"delete-column",
|
|
|
|
"delete-table",
|
|
|
|
"file-link",
|
|
|
|
"shortcode",
|
|
|
|
],
|
|
|
|
table_selection: [
|
|
|
|
"bold",
|
|
|
|
"italic",
|
|
|
|
"strikethrough",
|
|
|
|
"code",
|
|
|
|
"insert-row",
|
|
|
|
"delete-row",
|
|
|
|
"insert-column",
|
|
|
|
"delete-column",
|
|
|
|
"delete-table",
|
|
|
|
"file-link",
|
|
|
|
"shortcode",
|
|
|
|
],
|
|
|
|
},
|
2023-05-11 06:44:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const DateFormat = {
|
2023-05-29 16:22:34 +02:00
|
|
|
date_format: "dd.MM.yyyy",
|
|
|
|
time_format: false,
|
|
|
|
format: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
|
2023-05-11 06:44:30 +02:00
|
|
|
};
|
|
|
|
|
2023-05-29 16:22:34 +02:00
|
|
|
const DataObject = {
|
|
|
|
widget: "object",
|
|
|
|
collapsed: true,
|
|
|
|
summary: "{{fields.enable | ternary('aktiv', 'inaktiv')}}",
|
|
|
|
};
|
|
|
|
|
|
|
|
const PatternEmail = {
|
|
|
|
pattern: [
|
|
|
|
"^\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$",
|
|
|
|
"name@domain.tld",
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
2023-12-12 17:25:51 +01:00
|
|
|
const ImageProps = {
|
|
|
|
widget: "image",
|
|
|
|
required: false,
|
|
|
|
media_library: {
|
|
|
|
folder_support: true,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export { MarkdownProps, DateFormat, DataObject, PatternEmail, ImageProps };
|