mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-07 02:07:43 +02:00
Markup properties (#10804)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -106,6 +106,7 @@ import {
|
||||
Insert,
|
||||
LastValue,
|
||||
LowerCase,
|
||||
MarkupFromString,
|
||||
Max,
|
||||
Min,
|
||||
Modulo,
|
||||
@@ -128,6 +129,7 @@ import {
|
||||
Sqrt,
|
||||
StringFromBoolean,
|
||||
StringFromDate,
|
||||
StringFromMarkup,
|
||||
StringFromNumber,
|
||||
Subtract,
|
||||
Trim,
|
||||
@@ -793,7 +795,9 @@ export default async () => ({
|
||||
DayFromDate,
|
||||
DateDifference,
|
||||
Min,
|
||||
Max
|
||||
Max,
|
||||
StringFromMarkup,
|
||||
MarkupFromString
|
||||
},
|
||||
rollbacks: {
|
||||
ToDoCloseRollback,
|
||||
|
||||
@@ -13,12 +13,13 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import cardPlugin from '@hcengineering/card'
|
||||
import contact, { Employee, Person } from '@hcengineering/contact'
|
||||
import core, { Doc, matchQuery, Ref, Timestamp } from '@hcengineering/core'
|
||||
import { Execution, parseContext } from '@hcengineering/process'
|
||||
import { ProcessControl } from '@hcengineering/server-process'
|
||||
import { markupToText } from '@hcengineering/text-core'
|
||||
import { getContextValue } from './utils'
|
||||
import cardPlugin from '@hcengineering/card'
|
||||
|
||||
// #region ArrayReduce
|
||||
|
||||
@@ -573,4 +574,12 @@ export function DayFromDate (value: Date): number {
|
||||
return new Date(value).getDate()
|
||||
}
|
||||
|
||||
export function StringFromMarkup (value: string): string {
|
||||
return markupToText(value)
|
||||
}
|
||||
|
||||
export function MarkupFromString (value: string): string {
|
||||
return value
|
||||
}
|
||||
|
||||
// #endregion
|
||||
|
||||
Reference in New Issue
Block a user