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

    Lets the user override default configuration values and saves them as user data.

    Hierarchy (View Summary)

    Implements

    Index
    colorPickers: Record<string, GirafeColorPicker> = {}
    displayStyle?: string
    feedbackTemplateHtml?: string
    isPanelVisible: boolean = false
    name: string
    panelTitle: string = 'user-preferences-panel'
    panelTogglePath: string = 'interface.userPreferencesPanelVisible'
    preferenceGroups: string[] = PreferenceGroups
    preferences: Record<string, UserPreference>
    ready: boolean = false
    rendered: boolean = false
    shadow: ShadowRoot
    styleUrls: string[] = ...
    template: Hole | (() => Hole)
    templateUrl: string = './template.html'
    • 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

    • Update state and local storage with new value

      Parameters

      • preferenceKey: string
      • newValue: unknown

      Returns void

    • 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

    • If necessary, change/update options of select elements right before they're shown.

      Parameters

      • preferenceKey: string

      Returns void

    • Reset user preferences back to defaults. This will delete the configOverrides object in storage and set the current state back to the defaults from config.json

      Returns Promise<void>

    • Called when user changes a preference in the panel

      Parameters

      • preferenceKey: string
      • evt: Event

      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