You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
1.8 KiB
93 lines
1.8 KiB
import {
|
|
parseData
|
|
} from './data-parser'
|
|
|
|
import {
|
|
parseProperties
|
|
} from './properties-parser'
|
|
|
|
import {
|
|
parseComponents
|
|
} from './components-parser'
|
|
|
|
import {
|
|
parseOptions
|
|
} from './options-parser'
|
|
|
|
import {
|
|
parseMethods
|
|
} from './methods-parser'
|
|
|
|
import {
|
|
parseBehaviors
|
|
} from './behaviors-parser'
|
|
|
|
import {
|
|
parseObservers
|
|
} from './observers-parser'
|
|
|
|
import {
|
|
parseRelations
|
|
} from './relations-parser'
|
|
|
|
import {
|
|
parseExternalClasses
|
|
} from './external-classes-parser'
|
|
|
|
import {
|
|
parseLifetimes
|
|
} from './lifetimes-parser'
|
|
|
|
import {
|
|
parseLifecycle
|
|
} from './lifecycle-parser'
|
|
|
|
import {
|
|
parseDefinitionFilter
|
|
} from './definition-filter-parser'
|
|
|
|
import {
|
|
parsePageLifetimes
|
|
} from './page-lifetimes-parser'
|
|
|
|
export function parseComponent (mpComponentOptions) {
|
|
const {
|
|
data,
|
|
options,
|
|
methods,
|
|
behaviors,
|
|
lifetimes,
|
|
observers,
|
|
relations,
|
|
properties,
|
|
pageLifetimes,
|
|
externalClasses
|
|
} = mpComponentOptions
|
|
|
|
const vueComponentOptions = {
|
|
mixins: [],
|
|
props: {},
|
|
watch: {},
|
|
mpOptions: {
|
|
mpObservers: []
|
|
}
|
|
}
|
|
|
|
parseComponents(vueComponentOptions)
|
|
|
|
parseData(data, vueComponentOptions)
|
|
parseOptions(options, vueComponentOptions)
|
|
parseMethods(methods, vueComponentOptions)
|
|
parseBehaviors(behaviors, vueComponentOptions)
|
|
parseLifetimes(lifetimes, vueComponentOptions)
|
|
parseObservers(observers, vueComponentOptions)
|
|
parseRelations(relations, vueComponentOptions)
|
|
parseProperties(properties, vueComponentOptions)
|
|
parsePageLifetimes(pageLifetimes, vueComponentOptions)
|
|
parseExternalClasses(externalClasses, vueComponentOptions)
|
|
|
|
parseLifecycle(mpComponentOptions, vueComponentOptions)
|
|
parseDefinitionFilter(mpComponentOptions, vueComponentOptions)
|
|
|
|
return vueComponentOptions
|
|
}
|
|
|