@geogirafe/lib-geoportal
    Preparing search index...

    A component consisting of two <input> elements of type date picker for temporal layer filtering. It supports specifying single-dates or date ranges. The widget validates input dates based on the specified timeOptions. In range mode, it validates lower and upper range limits so that they do not cross each other.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    activeTooltips: any[] = []
    callbacks: Callback[] = []
    componentManager: ComponentManager
    configManager: ConfigManager
    displayStyle?: string
    lowerInputElem: HTMLInputElement
    maxDefaultValue: string = ''
    maxValue: Date
    minDefaultValue: string = ''
    minValue: Date
    mode: TimeMode
    name: string
    rendered: boolean = false
    resolution: TimeResolution
    shadow: ShadowRoot
    stateManager: StateManager
    styleUrl: null | string = null
    styleUrls: string[] = ...
    template: Hole | (() => Hole)
    templateUrl: string = './template.html'
    timeFormatter: LayerTimeFormatter
    timeoutId?: Timeout
    upperInputElem: HTMLInputElement
    userInteractionManager: UserInteractionManager

    Accessors

    Methods

    • Deserialize an element and set the current element state to the deserialized one

      Parameters

      • _serializedElement: unknown

        The element serialization as returned by the serialize method

      Returns void

    • Parameters

      • parentNodeName: string
      • elem: null | Node
      • initialElem: null | Node = elem

      Returns null | Node

    • Convert the string in parameter with uHtml and return it. This allows to convert a string with html in a right html object. For example, htmlUnsafe('

      ') will return an html div object.

      Parameters

      • str: string

      Returns Hole

    • Resets the input elements to their default states. This either will be empty strings or the optionally defined minDefaultValue and maxDefaultValue. The method will trigger a TimeChangeEvent that bubbles up to the parent component.

      Returns void

    • In the templates, sometimes for accessibility reasons, we have to support the KeyDown Event In those case, we often juste want to do the same as the click event when Enter or Space is pressed Then this method can be used : it just calls the click event on the same element

      Parameters

      • e: KeyboardEvent

      Returns void