Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

_OPERATOR_INPUT: ConfigurationInput

Utility variable that can be used as value for the [configurationInputs$]{@link Category#configurationInputs$} Observable.

_allowedOperators: Operator<any>[]
_elasticKeywords: string[]
_generatedPredicate$: BehaviorSubject<ElementaryPredicate>

Emit a new Predicate if the Category is in a state that it can be created. Emits undefined if the Category is not in such state.

_inputType: SearchInputType
_operandsFormControls: FormControl[]

Stores the FormControl objects that are pushed into the observable when the number of operands changes.

_operandsFormControls$: ReplaySubject<FormControl[]>

Contains the FormControl objects that can be used to input search arguments.

_operatorFormControl: FormControl

Contains the FormControl object that is used to drive the operator selection.

The category can subscribe to it if it wishes to react to the selection change by the user.

_operatorService: OperatorService
_operatorTemplate$: BehaviorSubject<OperatorTemplatePart[]>

Contains the operator template parts that make up the operands GUI.

_optionalDependencies: OptionalDependencies
_options$: BehaviorSubject<SearchAutocompleteOption<NetAttributePair[]>[]>
_optionsMap: Map<string, NetAttributePair[]>

Autocomplete categories usually require a map to represent mapping of display names of their options to objects that are needed to construct their queries.

You are not required to use this map when you implement your own Category, but it comes with helpful functions and might save you some time.

See [options()]{@link AutocompleteCategory#options} and [addToMap()]{@link AutocompleteCategory#addToMap}.

_processCategory: CaseProcess
_trackByIdGenerator: IncrementingCounter

Generates IDs for template parts supplied to ng for.

translationPath: string
OPERATOR_METADATA: "operator" = 'operator'

The CategoryMetadataConfiguration key for this Category's Operator

_i18n: "search.category.case.task" = 'search.category.case.task'

Accessors

  • get displayBold(): boolean
  • get elasticKeywords(): string[]
  • Returns string[]

    the set of Elasticsearch keywords that should be queried by queries generated with this category. The method can be overridden if the keywords are not static and change based on some additional selection (eg. Data fields)

  • If you use the Category class as a sort of PredicateBuilder, then you want to use the [generatePredicate()]{@link Category#generatePredicate} method instead.

    This stream publishes either a new Predicate object or undefined based on changes to the FormControls that are managed by this class. If (based on user input) the Category reaches a state when construction of a Predicate is possible it will emit this Predicate. If it reaches a state when the Predicate can not longer be created undefined is emitted.

    Returns Observable<ElementaryPredicate>

  • get inputPlaceholder(): string
  • get operandsFormControls$(): Observable<FormControl[]>
  • Returns Observable<FormControl[]>

    an array of FormControl objects that contains as many controls as is the arity of the selected operator. Calling this method multiple times will return the same FormControl instances. When no operator is selected undefined is emitted.

  • An Observable of the options the user can select from for this search Category.

    The Observable is updated when the base set of options changes, not when the available options are filtered, see [filterOptions()]{@link AutocompleteCategory#filterOptions}.

    The Observable initially contains an empty array and the options may appear at a later point in time (based on the concrete AutocompleteCategory subclass implementation)

    Returns Observable<SearchAutocompleteOption<T[]>[]>

  • get providesPredicate(): boolean
  • get selectedOperatorArity(): number

Methods

  • clearOperatorSelection(): void
  • createMetadataValues(): unknown[]
  • createOptions(): void
  • deserializeOperandValue(text: unknown): Observable<any>
  • destroy(): void
  • getActiveInputFormControl(inputIndex: number): FormControl
  • getPetriNetIdentifier(net: Net): string
  • getProcessCategory(): Category<string[]>
  • initializeCategory(): void
  • isOperatorSelected(): boolean
  • isSelectedOperator(operatorClass: Type<any>): boolean
  • loadValuesFromMetadata(values: unknown[]): Observable<void>
  • The default implementation sets the provided values into this Category's operand form controls.

    An operator must be set before calling this method! Otherwise an error will be thrown.

    If the number of values doesn't match the arity of the selected operator an error will be thrown!

    If this Category overrides the [serializeOperandValue()]{@link Category#serializeOperandValue}, it must also override its deserialization counterpart - [deserializeOperandValue()]{@link #Category#deserializeOperandValue}!

    Parameters

    • values: unknown[]

      the serialized values that should be loaded into this Category instance

    Returns Observable<void>

    an Observable. When the Observable emits the category has finished loading its values.

  • operandValueChanges(operandIndex: number): void
  • reset(): void
  • selectDefaultOperator(): void
  • selectOperator(operatorIndex: number): void
  • serializeClass(): string
  • serializeOperandValue(valueFormControl: FormControl): unknown
  • updateOptions(): void

Generated using TypeDoc