Class PrintProcessor

************************************ Processor class *******************************************

Implements

  • IPrintProcessor

Constructors

Properties

formatter: IPrintCustomFormatter = ...
functionDefaults?: IGlobalPrintFunctionParams
globals?: IPrintGlobals
mf?: JQuery
onError: ((message) => void) = ...

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

possibleTargets: string[] = []
stylesheets: {
    [key: string]: string;
} = {}

Type declaration

  • [key: string]: string
FIELD_FUNCTION_PREFIX: string = "_field_"
FIELD_FUNCTION_TYPE: string = "fieldtype"
conditions: IConditionFunctionMap = {}
fieldIterators: IPrintIteratorMap = {}
functions: IPrintFunctionMap = {}
itemIterators: IPrintIteratorMap = {}
itemSorter: IPrintSorterMap = {}
labelIterators: IPrintIteratorMap = {}

Methods

  • Parameters

    • rowsContent: IPrintRowContent[]
    • formatter: IPrintFormatterTable
    • formatterId: string
    • parameters: IPrintTableMacro
    • selection: string[]
    • depth: number
    • redlining: null | string[]

    Returns Promise<void>

  • Parameters

    • condition: undefined | string
    • params: undefined | IPrintConditionParams
    • itemOrFolderRef: string
    • object: JQuery
    • selection: null | string[]

    Returns Promise<null | boolean>

  • Parameters

    • formatterId: string
    • parameters: IPrintMacroParams
    • itemOrFolder: string

    Returns Promise<IPrintRenderedCell[][]>

  • Parameters

    • tableId: string
    • selection: string[]

    Returns Promise<string>


  • Iterator Blocks


    Parameters

    • mf: JQuery
    • onError: ((message) => void)
        • (message): void
        • Parameters

          • message: string

          Returns void

    • format: string

    Returns void

  • Parameters

    • formatter: IPrintFormatterBlock
    • itemOrFolder: string

    Returns Promise<string>

  • Parameters

    • formatter: IPrintFormatterFields
    • itemOrFolder: string

    Returns Promise<string>

  • Parameters

    • macro: IPrintFunctionMacro
    • script: string
    • formatting: string
    • itemOrFolder: string
    • depth: number
    • callerId: string
    • printFunctionParams: any
    • redlining: null | string[]

    Returns Promise<string>


  • Main Processing functions to handle items from the print project


    Parameters

    • formatter: IPrintFormatter
    • itemOrFolder: string

    Returns Promise<string>

  • Parameters

    • macro: IPrintItemMacro
    • selection: string[]
    • depth: number
    • redlining: null | string[]

    Returns Promise<string>


  • processing of "json" macros like {execute:"function", parameters:{...}}


    Parameters

    • formatting: string
    • callerId: string
    • printFunctionParams: any
    • itemOrFolder: string
    • depth: number
    • redlining: null | string[]

    Returns Promise<string>

  • Parameters

    • macro: IPrintItemMacro
    • script: string
    • formatting: string
    • itemOrFolder: string

    Returns Promise<string>

  • Parameters

    • formatter: IPrintCustomFormatter
    • section: ICustomSection
    • projectOverwrites: IPrintFunctionParamsOverwrites
    • selection: string[]
    • possibleTargets: string[]

    Returns Promise<IProcessResult>

  • Parameters

    • macro: IPrintTableMacro
    • selection: string[]
    • redlining: null | string[]

    Returns Promise<string>

  • Parameters

    • formatter: IPrintFormatterTraces
    • item: string
    • depth: number

    Returns Promise<string>

  • Parameters

    • currentValue: string
    • onUpdate: ((newOptions) => void)
        • (newOptions): void
        • Parameters

          • newOptions: string

          Returns void

    Returns void

  • ********************************* manage formatters ***********************************

    Parameters

    • group: string

    Returns IPrintFunctionMap

  • Parameters

    • uid: string
    • Optional quiet: boolean

    Returns null | IPrintItemIterator

  • Parameters

    • user: string
    • mf: JQuery
    • first: boolean
    • last: boolean
    • login: boolean
    • email: boolean

    Returns string

  • Parameters

    • fct: IPrintBaseFunction
    • params: IAttributePrimitiveParams
    • onUpdate: ((newParams) => void)
        • (newParams): void
        • Parameters

          • newParams: IAttributePrimitiveParams

          Returns void

    Returns boolean

  • Parameters

    • fctName: string
    • currentValue: string
    • onUpdate: ((newValue) => void)
        • (newValue): void
        • Parameters

          • newValue: string

          Returns void

    Returns void

Generated using TypeDoc