Type Aliases
AdminRoutes
AdminRoutes: { edit?: string; new?: string; page?: string; provider?: string; q?: string; sort?: string; tab?: string }
Type declaration
Optional edit?: string
Optional new?: string
Optional page?: string
Optional provider?: string
Optional q?: string
Optional sort?: string
Optional tab?: string
AdminStore
Admin
Store
: { adminLinks
: LinkInfo[]; adminUsers
: AdminUsersInfo; api
: ApiResult<AuthenticateResponse> | null; auth
: AuthenticateResponse | null; authLinks
: LinkInfo[]; authPermissions
: any; authProfileUrl
: string | null; authRoles
: string[]; baseUrl
: string; copied
: boolean; debug
: boolean; displayName
: null; filter
: string; isAdmin
: boolean; link
: LinkInfo; SignIn
: any; adminLink
: any; cachedFetch
: any; init
: any; login
: any; logout
: any }Type declaration
Readonly adminLinks: LinkInfo[]
Readonly authLinks: LinkInfo[]
Readonly authPermissions: any
Readonly authProfileUrl: string | null
Readonly authRoles: string[]
baseUrl: string
copied: boolean
debug: boolean
Readonly displayName: null
filter: string
Readonly isAdmin: boolean
SignIn:function
adminLink:function
cachedFetch:function
- cachedFetch(string: any): Promise<unknown>
Parameters
Returns Promise<unknown>
init:function
login:function
logout:function
ApiState
Api
State
: { api
: any; apiLoading
: boolean; apiResult
: any; apiState
: ApiState; client
: any; error
: ResponseStatus; errorSummary
: string | null; formLayout
: any; model
: any; op
: MetadataOperationType; title
: string | null; apiForm
: any; apiSend
: any; createModel
: any; createRequest
: any; field
: any; fieldError
: any }Type declaration
Readonly api: any
apiLoading: boolean
apiResult: any
client: any
Readonly errorSummary: string | null
formLayout: any
model: any
title: string | null
apiForm:function
- apiForm(formData: FormData, queryArgs?: Record<string, any>): any
Parameters
formData: FormData
Optional queryArgs: Record<string, any>
Returns any
apiSend:function
- apiSend(dtoArgs: Record<string, any>, queryArgs?: Record<string, any>): any
Parameters
dtoArgs: Record<string, any>
Optional queryArgs: Record<string, any>
Returns any
createModel:function
- createModel(args: any): any
createRequest:function
- createRequest(args: any): any
field:function
- field(propName: string, f?: ((args: { id: string; input: InputInfo; rowClass: string }) => void)): any
Parameters
propName: string
Optional f: ((args: { id: string; input: InputInfo; rowClass: string }) => void)
- (args: { id: string; input: InputInfo; rowClass: string }): void
Parameters
args: { id: string; input: InputInfo; rowClass: string }
id: string
rowClass: string
Returns void
Returns any
fieldError:function
- fieldError(id: string): string
App
App
: { events
: Bus; petite
: any; reactive
: Identity; build
: any; component
: any; components
: any; createApp
: any; directive
: any; import
: any; nextTick
: any; onStart
: any; prop
: any; props
: any; start
: any; template
: any; templates
: any; unsubscribe
: any }Type declaration
events: Bus
Readonly petite: any
build:function
- build(args: Record<string, any>): any
Parameters
args: Record<string, any>
Returns any
component:function
- component(name: string, component: string | Function): void
Parameters
name: string
component: string | Function
Returns void
components:function
- components(components: Record<string, Object | Function>): void
Parameters
components: Record<string, Object | Function>
Returns void
createApp:function
- createApp(args: any): any
directive:function
- directive(name: string, fn: Function): void
import:function
- import(arg0: string): Promise<any>
Parameters
Returns Promise<any>
nextTick:function
- nextTick(f: Function): void
onStart:function
- onStart(f: Function): void
prop:function
- prop(name: string, val: any): void
props:function
- props(props: Record<string, any>): void
Parameters
props: Record<string, any>
Returns void
start:function
template:function
- template(name: string, $template: string): void
Parameters
name: string
$template: string
Returns void
templates:function
- templates(templates: Record<string, string>): void
Parameters
templates: Record<string, string>
Returns void
unsubscribe:function
Breakpoints
Breakpoints: Record<"2xl" | "xl" | "lg" | "md" | "sm", boolean>
Bus
Bus: { publish: any; subscribe: any }
Type declaration
publish:function
- publish(eventType: string, arg: any): void
Parameters
eventType: string
arg: any
Returns void
subscribe:function
- subscribe(type: string, callback: Function): { unsubscribe: any }
Parameters
type: string
callback: Function
Returns { unsubscribe: any }
CreateComponent
Type declaration
Parameters
Returns Record<string, any>
DocComponent
Type declaration
Parameters
Returns Record<string, any>
EditComponent
Type declaration
Parameters
Returns Record<string, any>
ExplorerRoutes
ExplorerRoutes: { body?: string; detailSrc?: string; doc?: string; form?: string; lang?: string; op?: string; preview?: string; provider?: string; response?: string; tab?: string }
Type declaration
Optional body?: string
Optional detailSrc?: string
Optional doc?: string
Optional form?: string
Optional lang?: string
Optional op?: string
Optional preview?: string
Optional provider?: string
Optional response?: string
Optional tab?: string
ExplorerRoutesExtend
ExplorerRoutesExtend: { queryHref: any }
ExplorerStore
Explorer
Store
: { activeDetailSrc
: string; activeLangSrc
: string | null; api
: ApiResult<AuthenticateResponse>; auth
: AuthenticateResponse; authLinks
: LinkInfo[]; authPermissions
: string[]; authProfileUrl
: string | null; authRoles
: string[]; baseUrl
: string; copied
: boolean; debug
: boolean; detailSrcResult
: {}; displayName
: string | null; filter
: string; filteredSideNav
: { expanded
: boolean; operations
: MetadataOperationType[]; tag
: string }[]; isServiceStackType
: boolean; op
: MetadataOperationType | null; opName
: string; opTabs
: {}; previewCache
: { lang
: string; preview
: string; url
: string } | null; previewResult
: string | null; previewSrc
: string; sideNav
: { expanded
: boolean; operations
: MetadataOperationType[]; tag
: string }[]; useLang
: string; SignIn
: any; cachedFetch
: any; getTypeUrl
: any; hasRole
: any; init
: any; invalidAccess
: any; langCache
: any; loadDetailSrc
: any; loadLang
: any; loadPreview
: any; login
: any; logout
: any; toggle
: any }Type declaration
Readonly activeDetailSrc: string
Readonly activeLangSrc: string | null
Readonly authLinks: LinkInfo[]
Readonly authPermissions: string[]
Readonly authProfileUrl: string | null
Readonly authRoles: string[]
baseUrl: string
copied: boolean
debug: boolean
detailSrcResult: {}
Readonly displayName: string | null
filter: string
Readonly filteredSideNav: { expanded: boolean; operations: MetadataOperationType[]; tag: string }[]
Readonly isServiceStackType: boolean
Readonly opName: string
Readonly opTabs: {}
Readonly previewCache: { lang: string; preview: string; url: string } | null
previewResult: string | null
Readonly previewSrc: string
sideNav: { expanded: boolean; operations: MetadataOperationType[]; tag: string }[]
Readonly useLang: string
SignIn:function
- SignIn(opt: any): Function
Parameters
Returns Function
cachedFetch:function
- cachedFetch(url: string): Promise<string>
Parameters
Returns Promise<string>
getTypeUrl:function
- getTypeUrl(types: string): string
hasRole:function
- hasRole(role: string): boolean
Parameters
Returns boolean
init:function
invalidAccess:function
langCache:function
- langCache(): { lang: string; op: string; url: string }
Returns { lang: string; op: string; url: string }
lang: string
op: string
url: string
loadDetailSrc:function
loadLang:function
loadPreview:function
login:function
- login(args: any, $on?: Function): void
Parameters
args: any
Optional $on: Function
Returns void
logout:function
toggle:function
- toggle(tag: string): void
Forms
Forms
: { Lookup
: {}; Meta
: Meta; Server
: AppMetadata; formClass
: string; gridClass
: string; theme
: ThemeInfo; apiValue
: any; colClass
: any; complexProp
: any; fetchLookupValues
: any; forAutoForm
: any; forCreate
: any; forEdit
: any; formValues
: any; format
: any; getFieldError
: any; getFormProp
: any; getGridInput
: any; getGridInputs
: any; getId
: any; getPrimaryKey
: any; getType
: any; groupTypes
: any; inputId
: any; inputProp
: any; isRequired
: any; kvpValues
: any; lookupLabel
: any; opTitle
: any; populateModel
: any; refInfo
: any; relativeTime
: any; relativeTimeFromDate
: any; relativeTimeFromMs
: any; resolveFormLayout
: any; supportsProp
: any; typeProperties
: any; useLabel
: any; usePlaceholder
: any }Type declaration
Lookup: {}
formClass: string
gridClass: string
apiValue:function
colClass:function
- colClass(fields: number): string
complexProp:function
- complexProp(prop: any): boolean
Parameters
Returns boolean
fetchLookupValues:function
Parameters
results: any[]
refreshFn: (() => void)
Returns void
forAutoForm:function
Parameters
Returns ((field: any) => void)
forCreate:function
Parameters
Returns ((field: any) => void)
forEdit:function
Parameters
Returns ((field: any) => void)
formValues:function
- formValues(form: any): Record<string, any>
Parameters
Returns Record<string, any>
format:function
getFieldError:function
- getFieldError(error: any, id: any): string
getFormProp:function
getGridInput:function
- getGridInput(input: InputInfo, f?: ((args: { id: string; input: InputInfo; rowClass: string }) => void)): { id: string; input: InputInfo; rowClass: string }
Parameters
Optional f: ((args: { id: string; input: InputInfo; rowClass: string }) => void)
- (args: { id: string; input: InputInfo; rowClass: string }): void
Parameters
args: { id: string; input: InputInfo; rowClass: string }
id: string
rowClass: string
Returns void
Returns { id: string; input: InputInfo; rowClass: string }
id: string
rowClass: string
getGridInputs:function
- getGridInputs(formLayout: InputInfo[], f?: ((args: { id: string; input: InputInfo; rowClass: string }) => void)): { id: string; input: InputInfo; rowClass: string }[]
Parameters
Optional f: ((args: { id: string; input: InputInfo; rowClass: string }) => void)
- (args: { id: string; input: InputInfo; rowClass: string }): void
Parameters
args: { id: string; input: InputInfo; rowClass: string }
id: string
rowClass: string
Returns void
Returns { id: string; input: InputInfo; rowClass: string }[]
getId:function
getPrimaryKey:function
getType:function
- getType(typeRef: string | { name: string; namespace: string }): MetadataType
Parameters
typeRef: string | { name: string; namespace: string }
groupTypes:function
- groupTypes(allTypes: any): any[]
inputId:function
- inputId(input: { id: string }): string
inputProp:function
Parameters
Returns { data-type: string; id: string; type: string }
data-type: string
id: string
type: string
isRequired:function
- isRequired(input: any): boolean
Parameters
Returns boolean
kvpValues:function
- kvpValues(input: any): { key: any; value: any }[]
Parameters
Returns { key: any; value: any }[]
lookupLabel:function
- lookupLabel(model: any, id: any, label: string): any
Parameters
model: any
id: any
label: string
Returns any
opTitle:function
populateModel:function
- populateModel(model: any, formLayout: any): Record<string, any>
Parameters
model: any
formLayout: any
Returns Record<string, any>
refInfo:function
Parameters
Returns { href: { $qs: {}; edit: any; new: any; op: string; skip: any }; html: any; icon: any }
href: { $qs: {}; edit: any; new: any; op: string; skip: any }
$qs: {}
edit: any
new: any
op: string
skip: any
html: any
icon: any
relativeTime:function
- relativeTime(val: string | number | Date, rtf?: RelativeTimeFormat): string
Parameters
val: string | number | Date
Optional rtf: RelativeTimeFormat
Returns string
relativeTimeFromDate:function
- relativeTimeFromDate(d: Date, from?: Date): string
Parameters
d: Date
Optional from: Date
Returns string
relativeTimeFromMs:function
- relativeTimeFromMs(elapsedMs: number, rtf?: RelativeTimeFormat): string
Parameters
elapsedMs: number
Optional rtf: RelativeTimeFormat
Returns string
resolveFormLayout:function
supportsProp:function
- supportsProp(prop: any): boolean
Parameters
Returns boolean
typeProperties:function
useLabel:function
- useLabel(input: any): string
usePlaceholder:function
- usePlaceholder(input: any): string
Identity
Identity: (<T>(args: T) => T)
Type declaration
Type Parameters
Parameters
Returns T
LocodeRoutes
LocodeRoutes: { body?: string; doc?: string; edit?: string; new?: string; op?: string; preview?: string; provider?: string; skip?: string; tab?: string }
Type declaration
Optional body?: string
Optional doc?: string
Optional edit?: string
Optional new?: string
Optional op?: string
Optional preview?: string
Optional provider?: string
Optional skip?: string
Optional tab?: string
LocodeRoutesExtend
LocodeRoutesExtend: { onEditChange: any; uiHref: any; update: any }
Type declaration
onEditChange:function
- onEditChange(any: any): void
uiHref:function
update:function
LocodeSettings
LocodeSettings: { events: { lookup: any; op: any; opProp: any }; clearPrefs: any; hasPrefs: any; lookup: any; op: any; opProp: any; saveLookup: any; saveOp: any; saveOpProp: any }
Type declaration
events: { lookup: any; op: any; opProp: any }
lookup:function
- lookup(op: string): string
op:function
opProp:function
- opProp(op: string, name: string): string
clearPrefs:function
- clearPrefs(op: string): void
hasPrefs:function
- hasPrefs(op: string): boolean
Parameters
Returns boolean
lookup:function
op:function
opProp:function
- opProp(op: string, name: string): any
saveLookup:function
- saveLookup(op: string, fn: Function): void
saveOp:function
- saveOp(op: string, fn: Function): void
saveOpProp:function
- saveOpProp(op: string, name: string, fn: Function): void
Parameters
op: string
name: string
fn: Function
Returns void
LocodeStore
Locode
Store
: { api
: ApiResult<AuthenticateResponse>; auth
: AuthenticateResponse; authLinks
: LinkInfo[]; authPermissions
: string[]; authProfileUrl
: string | null; authRoles
: string[]; baseUrl
: string; copied
: boolean; debug
: boolean; detailSrcResult
: any; displayName
: string | null; filter
: string; filteredSideNav
: { expanded
: boolean; operations
: MetadataOperationType[]; tag
: string }[]; isServiceStackType
: boolean; modalLookup
: any | null; op
: MetadataOperationType; opDataModel
: string; opDesc
: string; opName
: string; opViewModel
: string; previewResult
: string | null; sideNav
: { expanded
: boolean; operations
: MetadataOperationType[]; tag
: string }[]; useLang
: string; SignIn
: any; cachedFetch
: any; hasRole
: any; init
: any; invalidAccess
: any; login
: any; logout
: any; toggle
: any }Type declaration
Readonly authLinks: LinkInfo[]
Readonly authPermissions: string[]
Readonly authProfileUrl: string | null
Readonly authRoles: string[]
baseUrl: string
copied: boolean
debug: boolean
detailSrcResult: any
Readonly displayName: string | null
filter: string
Readonly filteredSideNav: { expanded: boolean; operations: MetadataOperationType[]; tag: string }[]
Readonly isServiceStackType: boolean
modalLookup: any | null
Readonly opDataModel: string
Readonly opDesc: string
Readonly opName: string
Readonly opViewModel: string
previewResult: string | null
sideNav: { expanded: boolean; operations: MetadataOperationType[]; tag: string }[]
Readonly useLang: string
SignIn:function
- SignIn(opt: any): Function
Parameters
Returns Function
cachedFetch:function
- cachedFetch(url: string): Promise<string>
Parameters
Returns Promise<string>
hasRole:function
- hasRole(role: string): boolean
Parameters
Returns boolean
init:function
invalidAccess:function
login:function
- login(args: any, $on?: Function): void
Parameters
args: any
Optional $on: Function
Returns void
logout:function
toggle:function
- toggle(tag: string): void
Meta
Type declaration
CACHE: {}
FullTypesMap: Record<string, MetadataType>
HttpErrors: Record<number, string>
TypesMap: Record<string, MetadataType>
tags: string[]
enumValues:function
- enumValues(type: string): { key: string; value: string }[]
Parameters
Returns { key: string; value: string }[]
getIcon:function
Parameters
Returns { svg: string }
getOp:function
getType:function
- getType(typeRef: string | { name: string; namespace?: string }): MetadataType
Parameters
typeRef: string | { name: string; namespace?: string }
isEnum:function
- isEnum(type: string): boolean
Parameters
Returns boolean
locodeUrl:function
- locodeUrl(op: string): string
urlWithState:function
- urlWithState(url: string): string
Routes
Routes: { page: string; state: Record<string, any>; href: any; set: any; to: any }
Type declaration
page: string
state: Record<string, any>
href:function
- href(args: Record<string, any>): string
Parameters
args: Record<string, any>
Returns string
set:function
- set(args: Record<string, any>): void
Parameters
args: Record<string, any>
Returns void
to:function
- to(args: Record<string, any>): void
Parameters
args: Record<string, any>
Returns void
Transition
Transition: ((prop: string, enter: boolean) => boolean)
Type declaration
- (prop: string, enter: boolean): boolean
Parameters
prop: string
enter: boolean
Returns boolean
Route methods used in Admin UI