AMap |
Type : any
|
AMap |
Type : any
|
cachePersistenceKey |
Type : string
|
Default value : 'httpCache'
|
config |
Type : InjectionToken<string>
|
Default value : new InjectionToken('websocket')
|
context |
Default value : require.context('./', true, /\.spec\.ts$/)
|
require |
Type : any
|
dateTimeFormat |
Type : object
|
Default value : {
formatDisplay (date) {
var day = date.getDate()
return `${localConfig.monthList[date.getMonth()]}-${day > 9 ? day : '0' + day} ${localConfig.dayList[date.getDay()]}`
},
formatMonth (date) {
return `${date.getFullYear()} ${localConfig.monthLongList[date.getMonth()]}`
},
getWeekDayArray (firstDayOfWeek) {
let beforeArray = []
let afterArray = []
const dayAbbreviation = localConfig.dayAbbreviation
for (let i = 0; i < dayAbbreviation.length; i++) {
if (i < firstDayOfWeek) {
afterArray.push(dayAbbreviation[i])
} else {
beforeArray.push(dayAbbreviation[i])
}
}
return beforeArray.concat(afterArray)
}
}
|
localConfig |
Type : object
|
Default value : {
dayAbbreviation: ['日', '一', '二', '三', '四', '五', '六'],
dayList: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
monthList: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'],
monthLongList: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
}
|
DEFAULT_PERFECT_SCROLLBAR_CONFIG |
Type : PerfectScrollbarConfigInterface
|
Default value : {
suppressScrollX: true
}
|
DEFAULT_PERFECT_SCROLLBAR_CONFIG |
Type : PerfectScrollbarConfigInterface
|
Default value : {
suppressScrollX: true
}
|
DEFAULT_PERFECT_SCROLLBAR_CONFIG |
Type : PerfectScrollbarConfigInterface
|
Default value : {
suppressScrollX: true
}
|
DEFAULT_PERFECT_SCROLLBAR_CONFIG |
Type : PerfectScrollbarConfigInterface
|
Default value : {
suppressScrollX: true
}
|
ELEMENT_DATA |
Type : PeriodicElement[]
|
Default value : [
{
name: '王小明',
age: 18,
address: '北京市朝阳区芍药居',
province: '北京市',
city: '朝阳区',
zip: 100000
},
{
name: '张小刚',
age: 25,
address: '北京市海淀区西二旗',
province: '北京市',
city: '海淀区',
zip: 100000
},
{
name: '李小红',
age: 30,
address: '上海市浦东新区世纪大道',
province: '上海市',
city: '浦东新区',
zip: 100000
},
{
name: '周小伟',
age: 26,
address: '深圳市南山区深南大道',
province: '广东',
city: '南山区',
zip: 100000
},
{
name: '李小红',
age: 30,
address: '上海市浦东新区世纪大道',
province: '上海市',
city: '浦东新区',
zip: 100000
},
{
name: '周小伟',
age: 26,
address: '深圳市南山区深南大道',
province: '广东',
city: '南山区',
zip: 100000
}
]
|
environment |
Type : object
|
Default value : {
production: false,
serverUrl: '/',
firebase: {
apiKey: 'AIzaSyAGcYsQtc9xqqEKstnoO3WasuZxJmKTwNc',
authDomain: 'angular-material-app-stbui.firebaseapp.com',
databaseURL: 'https://angular-material-app-stbui.firebaseio.com',
projectId: 'angular-material-app-stbui',
storageBucket: 'angular-material-app-stbui.appspot.com',
messagingSenderId: '974351057659'
},
navigationApi: '/angular-material-app/assets/data/navigation',
todoApi: '/angular-material-app/assets/data/todo/list.json',
mailApi: '/angular-material-app/assets/data/mail/list.json',
chatsApi: '/angular-material-app/assets/data/chats/list.json',
analysisApi: '/angular-material-app/assets/data/analysis',
crmApi: '/angular-material-app/assets/data/crm',
tableApi: '/angular-material-app/assets/data/table',
apm: '/assets/data/apm'
}
|
environment |
Type : object
|
Default value : {
production: false,
serverUrl: '/',
firebase: {
apiKey: 'AIzaSyAGcYsQtc9xqqEKstnoO3WasuZxJmKTwNc',
authDomain: 'angular-material-app-stbui.firebaseapp.com',
databaseURL: 'https://angular-material-app-stbui.firebaseio.com',
projectId: 'angular-material-app-stbui',
storageBucket: 'angular-material-app-stbui.appspot.com',
messagingSenderId: '974351057659'
},
navigationApi: '/assets/data/navigation',
todoApi: '/assets/data/todo/list.json',
mailApi: '/assets/data/mail/list.json',
chatsApi: '/assets/data/chats/list.json',
analysisApi: '/assets/data/analysis',
crmApi: '/assets/data/crm',
tableApi: '/assets/data/table',
apm: '/assets/data/apm'
}
|
environment |
Type : object
|
Default value : {
production: true,
serverUrl: '/',
firebase: {
apiKey: 'AIzaSyAGcYsQtc9xqqEKstnoO3WasuZxJmKTwNc',
authDomain: 'angular-material-app-stbui.firebaseapp.com',
databaseURL: 'https://angular-material-app-stbui.firebaseio.com',
projectId: 'angular-material-app-stbui',
storageBucket: 'angular-material-app-stbui.appspot.com',
messagingSenderId: '974351057659'
},
navigationApi: '/assets/data/navigation',
todoApi: '/assets/data/todo/list.json',
mailApi: '/assets/data/mail/list.json',
chatsApi: '/assets/data/chats/list.json',
analysisApi: '/assets/data/analysis',
crmApi: '/assets/data/crm',
tableApi: '/assets/data/table',
apm: '/assets/data/apm'
}
|
FILE_SIZE_UNITS |
Type : []
|
Default value : ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
|
FILE_SIZE_UNITS_LONG |
Type : []
|
Default value : [
'Bytes',
'Kilobytes',
'Megabytes',
'Gigabytes',
'Pettabytes',
'Exabytes',
'Zettabytes',
'Yottabytes'
]
|
getRandomMessage |
Default value : () => randomMessages[rand(randomMessages.length)]
|
rand |
Default value : max => Math.floor(Math.random() * max)
|
locale |
Type : object
|
Default value : {
lang: 'zh',
data: {
settings: {
brand: '品牌',
layout: {
title: '布局',
boxed: '固定宽度',
fullwidth: '满屏宽度',
},
navigation: {
title: '导航',
left: '左侧',
right: '右侧',
none: '隐藏',
},
header: {
title: '头部',
below: '显示',
none: '隐藏',
},
footer: {
title: '尾部',
below: '显示',
none: '隐藏',
},
},
},
}
|
locale |
Type : object
|
Default value : {
lang: 'en',
data: {
settings: {
brand: 'brand',
layout: {
title: 'layout',
boxed: 'boxed',
fullwidth: 'fullwidth',
},
navigation: {
title: 'navigation',
left: 'left',
right: 'right',
none: 'none',
},
header: {
title: 'header',
below: 'below',
none: 'none',
},
footer: {
title: 'footer',
below: 'below',
none: 'none',
},
},
},
}
|
STBUI_AMAP_DATA |
Default value : new InjectionToken<any>('StbuiAmapData')
|
STBUI_AMAP_DEFAULT_OPTIONS |
Default value : new InjectionToken<AmapConfig>(
'amap-default-options'
)
|
STBUI_AMAP_USER_OPTIONS |
Default value : new InjectionToken<AmapConfig>(
'amap-user-options'
)
|
STBUI_CHATWIDGET_DATA |
Default value : new InjectionToken<any>(
'StbuiChatWidgetData'
)
|
STBUI_NOTIFICATION_DATA |
Default value : new InjectionToken<any>('StbuiNonticationData')
|
STBUI_NOTIFICATION_DEFAULT_OPTIONS |
Default value : new InjectionToken<NotificationConfig>('notification-default-options')
|
uri |
Type : string
|
Default value : 'https://api.github.com/graphql'
|