The custom component defintion and integration has changed. Below you see on the example of the ChartJs component, what needs to be changed:
app/matestack/components/chart_js.js
import Chart from 'chart.js';
import MatestackUiVueJs from 'matestack-ui-vuejs' // new package name!
// no Vue import here anymore
// no more Vue.component(...), define plain object here:
const chartJsComponent = {
mixins: [MatestackUiVueJs.componentMixin], // new package name!
template: MatestackUiVueJs.componentHelpers.inlineTemplate, // add this
// ...
}
export default chartJsComponent // add export
and then in your application.js file:
import chartJsComponent from '../../matestack/components/chart_js.js'// import component definition from source
const appInstance = createApp({})
appInstance.component('chart-js-component', chartJsComponent) // register at appInstance
MatestackUiBootstrap.registerComponents(appInstance)
document.addEventListener('DOMContentLoaded', () => {
MatestackUiVueJs.mount(appInstance)
})
Admin template class
Matestack::Ui::Bootstrap::Apps::AdminTemplate is now Matestack::Ui::Bootstrap::Layouts::AdminTemplate
--> Search & Replace
Manually including the registry is not longer required
include Matestack::Ui::Bootstrap::Registry can now be removed as it the component will be automatically available when installing matestack-ui-bootstrap