Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

ErrorResponseType: null | "RefreshTokenException"

Variables

BootstrapColors: string[]
BootstrapSizes: string[]

Functions

  • $$(sel: any, el?: HTMLElement): any
  • Parameters

    • sel: any
    • Optional el: HTMLElement

    Returns any

  • $1(sel: any, el?: HTMLElement): any
  • Parameters

    • sel: any
    • Optional el: HTMLElement

    Returns any

  • EventBus(): void
  • activeClass(href: string, activePath: string, exact?: boolean): string
  • Parameters

    • href: string
    • activePath: string
    • Optional exact: boolean

    Returns string

  • activeClassNav(x: NavItem, activePath: string): string
  • alignAuto(obj: any, len: number, pad?: string): string
  • Parameters

    • obj: any
    • len: number
    • Optional pad: string

    Returns string

  • alignCenter(str: string, len: number, pad?: string): string
  • Parameters

    • str: string
    • len: number
    • Optional pad: string

    Returns string

  • alignLeft(str: string, len: number, pad?: string): string
  • Parameters

    • str: string
    • len: number
    • Optional pad: string

    Returns string

  • alignRight(str: string, len: number, pad?: string): string
  • Parameters

    • str: string
    • len: number
    • Optional pad: string

    Returns string

  • apiValue(o: any): any
  • apiValueFmt(o: any): any
  • appendQueryString(url: string, args: any): string
  • apply<T>(x: T, fn: ((x: T) => void)): T
  • Type Parameters

    • T

    Parameters

    • x: T
    • fn: ((x: T) => void)
        • (x: T): void
        • Parameters

          • x: T

          Returns void

    Returns T

  • bootstrap(el?: Element): void
  • btnClasses(props: any): any[]
  • btnColorClass(props: any): string
  • btnSizeClass(props: any): string
  • bytesToBase64(aBytes: Uint8Array): string
  • chop(str: string, len?: number): string
  • Parameters

    • str: string
    • Optional len: number

    Returns string

  • classNames(...args: any[]): string
  • combinePaths(...paths: string[]): string
  • createBus(): { publish: any; subscribe: any }
  • Returns { publish: any; subscribe: any }

    • publish:function
      • publish(eventType: string, arg: any): void
    • subscribe:function
      • subscribe(type: string, callback: Function): { unsubscribe: any }
      • Parameters

        • type: string
        • callback: Function

        Returns { unsubscribe: any }

        • unsubscribe:function
          • unsubscribe(): void
  • createError(errorCode: string, message: string, fieldName?: string): ErrorResponse
  • createErrorStatus(message: string, errorCode?: string): ResponseStatus
  • createFieldError(fieldName: string, message: string, errorCode?: string): ResponseStatus
  • createPath(route: string, args: any): string
  • createUrl(route: string, args: any): string
  • css(selector: string | NodeListOf<Element>, name: string, value: string): void
  • Parameters

    • selector: string | NodeListOf<Element>
    • name: string
    • value: string

    Returns void

  • dateFmt(d?: Date): string
  • dateFmtHM(d?: Date): string
  • delaySet(f: ((loading: boolean) => any), opt?: { duration?: number }): (() => void)
  • Parameters

    • f: ((loading: boolean) => any)
        • (loading: boolean): any
        • Parameters

          • loading: boolean

          Returns any

    • Optional opt: { duration?: number }
      • Optional duration?: number

    Returns (() => void)

      • (): void
      • Returns void

  • each(xs: any[], f: ((acc: any, x: any) => void), o?: any): any
  • Parameters

    • xs: any[]
    • f: ((acc: any, x: any) => void)
        • (acc: any, x: any): void
        • Parameters

          • acc: any
          • x: any

          Returns void

    • Optional o: any

    Returns any

  • enc(o: any): string
  • errorResponse(fieldName: string): any
  • errorResponseExcept(fieldNames: string | string[]): any
  • Parameters

    • fieldNames: string | string[]

    Returns any

  • errorResponseSummary(): any
  • flatMap(f: Function, xs: any[]): any
  • fromByteArray(base64: string): Uint8Array
  • fromDateTime(dateTime: string): Date
  • fromGuid(xsdDuration: string): string
  • fromTimeSpan(xsdDuration: string): string
  • fromXsdDuration(xsd: string): number
  • getField(o: any, name: string): any
  • getMethod(request: any, method?: string): any
  • Parameters

    • request: any
    • Optional method: string

    Returns any

  • getResponseStatus(e: any): any
  • htmlAttrs(o: any): string
  • humanify(s: any): any
  • humanize(s: any): any
  • indexOfAny(str: string, needles: string[]): number
  • Parameters

    • str: string
    • needles: string[]

    Returns number

  • isDate(d: any): boolean
  • isDigit(c: string): boolean
  • isFormData(body: any): boolean
  • isLower(c: string): boolean
  • isNullOrEmpty(o: any): boolean
  • isUpper(c: string): boolean
  • lastLeftPart(s: string, needle: string): string
  • lastRightPart(s: string, needle: string): string
  • leftPart(s: string, needle: string): string
  • mapGet(o: any, name: string): any
  • nameOf(o: any): any
  • normalize(dto: any, deep?: boolean): any
  • Parameters

    • dto: any
    • Optional deep: boolean

    Returns any

  • normalizeKey(key: string): string
  • omit(o: any, keys: string[]): {}
  • on(sel: any, handlers: any): void
  • onlyProps(obj: {}, keys: string[]): {}
  • Parameters

    • obj: {}
      • [index: string]: any
    • keys: string[]

    Returns {}

    • [index: string]: any
  • padInt(n: number): string | number
  • parseCookie(setCookie: string): Cookie
  • parseResponseStatus(json: string, defaultMsg?: any): any
  • Parameters

    • json: string
    • Optional defaultMsg: any

    Returns any

  • pick(o: any, keys: string[]): {}
  • populateForm(form: HTMLFormElement, model: any): void
  • Parameters

    • form: HTMLFormElement
    • model: any

    Returns void

  • queryString(url: string): any
  • resolve<T>(o: T, f?: ((x: T) => any)): any
  • Type Parameters

    • T

    Parameters

    • o: T
    • Optional f: ((x: T) => any)
        • (x: T): any
        • Parameters

          • x: T

          Returns any

    Returns any

  • rightPart(s: string, needle: string): string
  • safeVarName(s: string): string
  • sanitize(status: any): any
  • serializeForm(form: HTMLFormElement, contentType?: string): string | FormData
  • Parameters

    • form: HTMLFormElement
    • Optional contentType: string

    Returns string | FormData

  • serializeToFormData(form: HTMLFormElement): FormData
  • serializeToObject(form: HTMLFormElement): any
  • serializeToUrlEncoded(form: HTMLFormElement): string
  • splitOnFirst(s: string, c: string): string[]
  • splitOnLast(s: string, c: string): string[]
  • splitTitleCase(s: string): any[]
  • stripQuotes(s: string): string
  • timeFmt12(d?: Date): string
  • toBase64String(source: string): string
  • toByteArray(bytes: Uint8Array): string
  • toCamelCase(s: string): string
  • toDate(s: any): Date
  • toDateFmt(s: string): string
  • toDateTime(date: Date): string
  • toFormData(o: any): FormData
  • toGuid(xsdDuration: string): string
  • toLocalISOString(d?: Date): string
  • toObject(keys: any): {}
  • toPascalCase(s: string): string
  • toTimeSpan(xsdDuration: string): string
  • toTimeSpanFmt(time: number): string
  • toVarNames(names: string | string[]): string[]
  • Parameters

    • names: string | string[]

    Returns string[]

  • toXsdDuration(time: number): string
  • triggerEvent(el: Element, name: string, data?: any): void
  • Parameters

    • el: Element
    • name: string
    • Optional data: any

    Returns void

  • trimEnd(s: string, c: string): string
  • tryDecode(s: string): string
  • ucFirst(s: string): string
  • uniq(xs: string[]): string[]
  • uniqueKeys(rows: any[]): string[]

Generated using TypeDoc