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

    Hierarchy (View Summary)

    Implements

    Index
    availableComponents: readonly [
        { id: "map-2d"; label: "2D Map"; tagName: "girafe-map-2d" },
        { id: "map-3d"; label: "3D Map"; tagName: "girafe-map-3d" },
    ] = AVAILABLE_CELL_COMPONENTS

    The Components the user can choose between for each Cell of the Grid.

    displayStyle?: string
    feedbackTemplateHtml?: string
    isPanelVisible: boolean = false
    name: string
    panelTitle: string = 'layout-panel'
    panelTogglePath: string = 'interface.layoutPanelVisible'
    rendered: boolean = false
    shadow: ShadowRoot
    styleUrls: string[] = ...
    template: Hole | (() => Hole)
    templateUrl: string = './template.html'
    • get allowedLayouts(): ("1x1" | "2x1" | "1x2" | "2x2")[]

      The Layouts the user can choose between, as configured in the application.

      Returns ("1x1" | "2x1" | "1x2" | "2x2")[]

    • get is3dDisplayed(): boolean

      Whether one of the Cells displays a 3D Map, which the shadows options depend on.

      Returns boolean

    • get isFullscreenComponent(): boolean

      Whether this Component must stay visible when the App is in Fullscreen Mode. Controlled by the "fullscreen" attribute (default: false).

      Returns boolean

    • get layoutButtons(): { icon: string; type: "1x1" | "2x1" | "1x2" | "2x2" }[]

      The Layouts the user can choose between, with the icon illustrating each of them.

      Returns { icon: string; type: "1x1" | "2x1" | "1x2" | "2x2" }[]

    • Parameters

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

      Returns Node | null

    • 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

    • Places a Component in a Cell of the Grid. A Component can only be displayed once: if it is already displayed in another Cell, both Cells are swapped, so that the Component that was in the target Cell is not lost.

      Parameters

      • event: Event
      • cellIndex: number

      Returns void

    • Parameters

      • selectedLayout: "1x1" | "2x1" | "1x2" | "2x2"

      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